PIELab / behaviorSim_web

:thought_balloon: GUI for creating Human Behavior Models
http://pielab.github.io/behaviorSim_web/
GNU General Public License v2.0
0 stars 0 forks source link

mediate/moderate coding can use plain text #21

Open 7yl4r opened 10 years ago

7yl4r commented 10 years ago

instead of making users code the diagram using the implemented DSL, it may be better to just let them use plain text:

// direct links are the same
a -> b

// # full mediator #
c mediates a -> b
// removes a->b and compiles to :
a -> c -> b 

// # partial mediation 
C partially mediates A -> B
// compiles to:
A->B A->C B->C

// #moderator #
b moderates a -> c
// compiles to:
A->C B->[A-C link]