Package org.oristool.models.tpn
Class InitialTimedStateBuilder
java.lang.Object
org.oristool.models.tpn.InitialTimedStateBuilder
State builder for time Petri nets.
-
Constructor Summary
ConstructorsConstructorDescriptionInitialTimedStateBuilder(boolean transientAnalysis, boolean checkNewlyEnabled) Creates a state builder for time Petri nets. -
Method Summary
Modifier and TypeMethodDescriptioncomputeInitialState(PetriNet pn, Marking initialMarking) Builds an initialStateinstance from a marking.
-
Constructor Details
-
InitialTimedStateBuilder
public InitialTimedStateBuilder(boolean transientAnalysis, boolean checkNewlyEnabled) Creates a state builder for time Petri nets.When
checkNewlyEnabledis true, thePetriStateFeaturewill distinguish states with the same marking but different sets of newly enabled transitions.- Parameters:
transientAnalysis- whether the state should includeVariable.AGEcheckNewlyEnabled- whether to compare the sets of newly enabled transitions of states
-
-
Method Details
-
computeInitialState
Builds an initialStateinstance from a marking.The state includes a
PetriStateFeatureand aTimedStateFeature.- Parameters:
pn- Petri net associated with the markinginitialMarking- initial marking- Returns:
- a state instance with
PetriStateFeatureandTimedStateFeature
-