TypeState icon indicating copy to clipboard operation
TypeState copied to clipboard

[Feature] Add verbose logging to FSMs

Open eonarheim opened this issue 11 years ago • 1 comments

It would be nice to see a description in the console of the reasoning behind transitions for complicated state machines.

eonarheim avatar Sep 29 '14 23:09 eonarheim

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...

dafanasiev avatar Feb 05 '18 19:02 dafanasiev