Package org.oristool.models.stpn.trees
Class DeterministicEnablingStateBuilder
java.lang.Object
org.oristool.models.stpn.trees.DeterministicEnablingStateBuilder
- All Implemented Interfaces:
StateBuilder<DeterministicEnablingState>
public final class DeterministicEnablingStateBuilder
extends Object
implements StateBuilder<DeterministicEnablingState>
State builder for stochastic time Petri nets.
-
Constructor Summary
ConstructorDescriptionDeterministicEnablingStateBuilder
(PetriNet petriNet, boolean transientAnalysis) DeterministicEnablingStateBuilder
(PetriNet petriNet, boolean transientAnalysis, boolean checkNewlyEnabled, BigDecimal epsilon, int numSamples) Configures a state builder for STPNs. -
Method Summary
Modifier and TypeMethodDescriptionBuilds an initialState
instance from aDeterministicEnablingState
.
-
Constructor Details
-
DeterministicEnablingStateBuilder
-
DeterministicEnablingStateBuilder
public DeterministicEnablingStateBuilder(PetriNet petriNet, boolean transientAnalysis, boolean checkNewlyEnabled, BigDecimal epsilon, int numSamples) Configures a state builder for STPNs.- Parameters:
petriNet
- Petri nettransientAnalysis
- whether the state should includeVariable.AGE
checkNewlyEnabled
- whether to compare the sets of newly enabled transitions of statesepsilon
- allowed error when comparing statesnumSamples
- number of samples used when comparing states
-
-
Method Details
-
build
Builds an initialState
instance from aDeterministicEnablingState
.The state includes a
PetriStateFeature
andStochasticStateFeature
.- Specified by:
build
in interfaceStateBuilder<DeterministicEnablingState>
- Parameters:
s
- a deterministic enabling state- Returns:
- a state instance
-