Open eonarheim opened 9 years ago
You can add Graphviz export (web ui: http://www.webgraphviz.com/) function:
public asGraphviz() : string {
const rv = ['digraph G {'];
this._transitionFunctions.forEach(tf => {
rv.push(tf.from + ' -> ' + tf.to);
})
rv.push('}');
return rv.join("\n");
}
Maybe it help...
It would be nice to see a description in the console of the reasoning behind transitions for complicated state machines.