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

Using a simple notation for export and import #7

Closed
omarzd opened this issue Dec 2, 2016 · 1 comment
Closed

Using a simple notation for export and import #7

omarzd opened this issue Dec 2, 2016 · 1 comment

Comments

@omarzd
Copy link

omarzd commented Dec 2, 2016

I thought we can preserve the information of a FSM to import later by using a simple format like aut, explained here. The import would be trickier than the export, but not hard at all. For the export, I wrote the following function:

function saveAsAUT() {
  var autData = '';
    autData += 'des (0,'+ links.length +','+ nodes.length +')\n';
    for(var i = 0; i < links.length; i++) {
      autData += '('+ links[i].nodeA.text +','+ links[i].text +','+ links[i].nodeB.text +')\n';
    }
  output(autData);
}
@omarzd
Copy link
Author

omarzd commented Dec 5, 2016

I just learned that the AUT format cannot describe final states. So I'll close this, but we might look at the DOT format which GraphViz uses. That would be useful.

@omarzd omarzd closed this as completed Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant