My fix provide to load file correctly but in Annimation Mode crash. Cause of this is lack of definition of token in file. When I add:
<token id="Default" enabled="true" red="0" green="0" blue="0"/>
as a first child of net tag, Producer & Consumer load correctly and work correctly.
When token is not defined in file, appliaction should create default black token definition. Pleas fix it because without fix it I do not open PNML files created in other applications.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Stack trace
This problem occurs since version 4.2. Version 4.1 works ok.
I fix this problem. I change in PetriNetView.java:2129
for(TokenView tc : _tokenViews)
to
for(TokenView tc : getTokenViews())
and it works.
My fix provide to load file correctly but in Annimation Mode crash. Cause of this is lack of definition of token in file. When I add:
<token id="Default" enabled="true" red="0" green="0" blue="0"/>
as a first child of net tag, Producer & Consumer load correctly and work correctly.
When token is not defined in file, appliaction should create default black token definition. Pleas fix it because without fix it I do not open PNML files created in other applications.
This appears to have been fixed in v4.3.0. Please reopen on GitHub issues if you suffer anymore problems.
https://github.com/sarahtattersall/PIPE/issues?page=1&state=open