Change Marking During Simulation | CPN Tools help |
How-to |
During simulation you can change the current marking of a place. Simply click on the marking as shown below to enter text edit mode, and type in the new inscription. When you exit text-edit mode, the place will have the new inscription.
If the colour set of the place is not a timed colour set, then the new inscription must evaluate to either a multi-set of values from the colour set of the place, or a single value from the colour set of the place.
If the colour set of the place is a timed colour set, then the new inscription must evaluate to either a timed multi-set of values from the colour set of the place, a single untimed value from the colour set of the place, or a single timed value from the colour set of the place.
Use the Show Marking entry of the Place marking menu to update or create the current marking of a place instance.
You can change the marking of a place to be empty by applying the Delete Element tool to the marking information. This tool can be found in the Current marking marking menu.
If you write an illegal current marking on a place. The old marking is inserted after a syntax check with the illegal marking afterwards in comments.