Skip to content

Conversation

@Lazuliert
Copy link

Fixed a bug when undoing a AddTokenCommand on a already maxed out place.
The undo would remove a token when the AddTokenCommand actually did nothing
Now the undo put the old value (which can be seen as doing nothing in that case)
Maybe some possible amelioration would be to make the +1 token tool unavailable on maxed out places (with visual effects similar to those on transitions)

Static and Token limits are mutually exclusives. places have to be one or another
…an be saved and load now

This still allows previous saves to load
…tokens

and then undoing last action would remove a token on that place
AddTokenCommand now register number of tokens on node and put that value when
undoing instead of removing a token
@Lazuliert Lazuliert changed the title Invariant Token Limit on places Mar 11, 2019
@Lazuliert
Copy link
Author

This adds the possibility to set a token limit on each places.
Static places can't have token limits.
To add a token limit, simply right-click on a place with the Select tool ad then choose the corresponding option in the menu.
Export/Save and Import/Load tools and functions have been modified to integrate this.
The BoundednessAction also has been modified so that a net that would have been unbounded but now with limits that makes it bounded is recognze as bounded.

…ming arc for the same transition and a limit
…ersion

Proving the boundedness on a Petri Net with token limit on places seems difficult and out of my league
Now, the output precises that the rsults ignore token limits.
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

Successfully merging this pull request may close these issues.

1 participant