Package org.oristool.models.pn
Class InitialPetriStateBuilder
java.lang.Object
org.oristool.models.pn.InitialPetriStateBuilder
State builder for Petri nets.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic State
computeInitialState
(PetriNet petriNet, Marking initialMarking) static State
computeInitialState
(PetriNet pn, Marking initialMarking, boolean checkNewlyEnabled) Builds an initialState
instance from a marking.
-
Constructor Details
-
InitialPetriStateBuilder
public InitialPetriStateBuilder()
-
-
Method Details
-
computeInitialState
-
computeInitialState
public static State computeInitialState(PetriNet pn, Marking initialMarking, boolean checkNewlyEnabled) Builds an initialState
instance from a marking.The state includes only a
PetriStateFeature
.When
checkNewlyEnabled
is true, thePetriStateFeature
will 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
-