Initial marked places not updated on simulation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TAPAAL |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
[cpn GUI branch]
During the simulation, the places with initial tokens don't update. The number of tokens **displayed** in the place never change when firing transitions, although the real number is updated.
Create a not timed Petri net with two places and a transition between them. Add a token on the first place. When simulating, the transition can fire, and a deadlock happens then obviously. But the token in the first place does not disappear.
When looking at the .tapn file, in the hlinitialMarking section, one can replace the user operator by dotoperator, and reload the tapaal project: it then works fine.
<hlinitialMarking>
<text>
<structure>
<add>
<subterm>
<numberof>
<subterm>
<positive/>
</subterm>
<subterm>
-----> <useroperator declaration="dot"/> /// <dotoperator/>
</subterm>
</numberof>
</subterm>
</add>
</structure>
</hlinitialMa
Changed in tapaal: | |
status: | New → Fix Committed |
milestone: | none → cpn |