Package org.oristool.models.pn
Class InitialPetriStateBuilder
java.lang.Object
org.oristool.models.pn.InitialPetriStateBuilder
State builder for Petri nets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StatecomputeInitialState(PetriNet petriNet, Marking initialMarking) static StatecomputeInitialState(PetriNet pn, Marking initialMarking, boolean checkNewlyEnabled) Builds an initialStateinstance from a marking.
-
Constructor Details
-
InitialPetriStateBuilder
public InitialPetriStateBuilder()
-
-
Method Details
-
computeInitialState
-
computeInitialState
public static State computeInitialState(PetriNet pn, Marking initialMarking, boolean checkNewlyEnabled) Builds an initialStateinstance from a marking.The state includes only a
PetriStateFeature.When
checkNewlyEnabledis true, thePetriStateFeaturewill distinguish states with the same marking but different sets of newly enabled transitions.- Parameters:
pn- Petri net associated with the markinginitialMarking- initial markingcheckNewlyEnabled- whether to compare the set of newly enabled transitions of two states- Returns:
- a state instance with a
PetriStateFeature
-