Initial marked places not updated on simulation

Bug #2016304 reported by Malo Dautry
6
This bug affects 1 person
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>(1'dot)</text>
    <structure>
      <add>
     <subterm>
       <numberof>
      <subterm>
        <numberconstant value="1">
       <positive/>
        </numberconstant>
      </subterm>
      <subterm>
-----> <useroperator declaration="dot"/> /// <dotoperator/>
      </subterm>
       </numberof>
     </subterm>
      </add>
    </structure>
  </hlinitialMarking>

Revision history for this message
Malo Dautry (mdautry) wrote :
Revision history for this message
Malo Dautry (mdautry) wrote :
description: updated
Jiri Srba (srba)
Changed in tapaal:
status: New → Fix Committed
milestone: none → cpn
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.