KappaTools icon indicating copy to clipboard operation
KappaTools copied to clipboard

KaJaSim feature idea: add left bar to editor displaying symbols for operations done in rule

Open hmedina opened this issue 8 years ago • 3 comments

There are several operations done in Kappa, e.g. binding, unbinding, link-swaps, state modifications, creation, and degradation. As a debugging tool, it would be useful if the editor informed the user of what it thought the rule was doing.

As an idea, I suggest (lightly) having a side bar (e.g. next to the line number) that displays small symbols. For example, if the rule binds then it has a red square, if it unbinds then it is a blue diamond, if there is a link swap there is a purple octahedron. State modification could be a green circle. Creation could be a tip-up black triangle, degradation a tip-down hollow triangle.

hmedina avatar Apr 11 '16 19:04 hmedina

Do you still think it is mandatory when using the syntax with edits I suggest in #204?

pirbo avatar Feb 15 '17 02:02 pirbo

I would call it as mandatory as syntax highlighting is for code development, so not mandatory at all. Hardcore people can code with just notepad.exe after all.

However, I think having the IDE tell the user what it understood of a rule is a type of feedback that is currently not offered. This could be fulfilled by having the capacity in the IDE to convert sentences to/from LHS->RHS and LHS + mod notations. Still, having an icon-based feedback for the actions in a rule would be more user friendly, and would suggest ways of structuring the kappa code. For example, making sure binding/unbinding rules are grouped and don't contain valid ka-typos.

hmedina avatar Feb 15 '17 23:02 hmedina

Addendum: people coming from different modeling backgrounds seem to struggle with keeping mass constant. As the longest prefix convention seems idiosyncratic to Kappa, novel users seem to forget it often. Therefore I believe users need more feedback from the UI telling them where they are synthesizing and degrading agents.

hmedina avatar Oct 20 '17 18:10 hmedina