Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add verbose logging to FSMs #4

Open
eonarheim opened this issue Sep 29, 2014 · 1 comment
Open

[Feature] Add verbose logging to FSMs #4

eonarheim opened this issue Sep 29, 2014 · 1 comment

Comments

@eonarheim
Copy link
Owner

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

@dafanasiev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants