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