Class PetriTokensAdder

java.lang.Object
org.oristool.models.pn.PetriTokensAdder
All Implemented Interfaces:
MarkingUpdater

public final class PetriTokensAdder extends Object implements MarkingUpdater
A simple strategy adding tokens to each output place.
  • Constructor Details

    • PetriTokensAdder

      public PetriTokensAdder()
  • Method Details

    • update

      public void update(Marking m, PetriNet petriNet, Transition t)
      Adds tokens to each output place according to the multiplicity of the postcondition.
      Specified by:
      update in interface MarkingUpdater
      Parameters:
      m - marking
      petriNet - Petri net
      t - fired transition