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

Create a gen_pnet_state module #2

Open
joergen7 opened this issue Sep 1, 2017 · 0 comments
Open

Create a gen_pnet_state module #2

joergen7 opened this issue Sep 1, 2017 · 0 comments
Milestone

Comments

@joergen7
Copy link
Owner

joergen7 commented Sep 1, 2017

Currently, the gen_pnet module exports a number of functions for constructing and accessing the state record of a Petri net instance. These functions are new/2, get_ls/2, get_usr_info/1, and get_stats/1.

These functions should be moved to a new module with the name gen_pnet_state. Also, the name of the state record should match the name of this module (currently it's called net_state).

When this is done, a state instance can be accessed in an OO-style. E.g., the user info field could be extracted by writing NetState:get_user_info().

@joergen7 joergen7 added this to the 0.1.7 milestone Sep 1, 2017
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