Package org.oristool.models.stpn.trees
Class StochasticComponentsFactory
java.lang.Object
org.oristool.models.stpn.trees.StochasticComponentsFactory
- All Implemented Interfaces:
AnalyzerComponentsFactory<PetriNet,
Transition>
public final class StochasticComponentsFactory
extends Object
implements AnalyzerComponentsFactory<PetriNet,Transition>
Factory of objects to build the state space and PDFs of a stochastic time
Petri net using
Analyzer
.-
Constructor Summary
ConstructorDescriptionStochasticComponentsFactory
(boolean transientAnalysis, MarkingUpdater tokensRemover, MarkingUpdater tokensAdder, boolean checkNewlyEnabled, EnumerationPolicy policy, OmegaBigDecimal tauAgeLimit, StopCriterion stopCriterion, BigDecimal epsilon, int numSamples, AnalysisMonitor monitor) Builds a factory for STPN analysis.StochasticComponentsFactory
(boolean transientAnalysis, MarkingUpdater tokensRemover, MarkingUpdater tokensAdder, boolean checkNewlyEnabled, EnumerationPolicy policy, OmegaBigDecimal tauAgeLimit, MarkingCondition stopCondition, BigDecimal epsilon, int numSamples, AnalysisMonitor monitor) Builds a factory for STPN analysis. -
Method Summary
Modifier and TypeMethodDescriptionReturns the builder for the events enabled in a state.Returns the policy selecting the next event to explore.Returns the criterion to arrest the entire graph enumeration.Returns the criterion to arrest the enumeration on a specific node.Returns the post-processor used after computing a successor state.Returns the pre-processor used before computing the enabled events.Returns the builder for the successor states after an event.
-
Constructor Details
-
StochasticComponentsFactory
public StochasticComponentsFactory(boolean transientAnalysis, MarkingUpdater tokensRemover, MarkingUpdater tokensAdder, boolean checkNewlyEnabled, EnumerationPolicy policy, OmegaBigDecimal tauAgeLimit, MarkingCondition stopCondition, BigDecimal epsilon, int numSamples, AnalysisMonitor monitor) Builds a factory for STPN analysis.- Parameters:
transientAnalysis
- whether to includeVariable.AGE
tokensRemover
- the token remover functiontokensAdder
- the token adder functioncheckNewlyEnabled
- whether to check newly-enabled sets in state comparisonspolicy
- policy for the selection of new nodestauAgeLimit
- time bound for the analysisstopCondition
- stop condition for the analysisepsilon
- allowed error when comparing statesnumSamples
- number of samples used to compare statesmonitor
- analysis monitor
-
StochasticComponentsFactory
public StochasticComponentsFactory(boolean transientAnalysis, MarkingUpdater tokensRemover, MarkingUpdater tokensAdder, boolean checkNewlyEnabled, EnumerationPolicy policy, OmegaBigDecimal tauAgeLimit, StopCriterion stopCriterion, BigDecimal epsilon, int numSamples, AnalysisMonitor monitor) Builds a factory for STPN analysis.- Parameters:
transientAnalysis
- whether to includeVariable.AGE
tokensRemover
- the token remover functiontokensAdder
- the token adder functioncheckNewlyEnabled
- whether to check newly-enabled sets in state comparisonspolicy
- policy for the selection of new nodestauAgeLimit
- time bound for the analysisstopCriterion
- local stop criterion for the analysisepsilon
- allowed error when comparing statesnumSamples
- number of samples used to compare statesmonitor
- analysis monitor
-
-
Method Details
-
getEnumerationPolicy
Description copied from interface:AnalyzerComponentsFactory
Returns the policy selecting the next event to explore.- Specified by:
getEnumerationPolicy
in interfaceAnalyzerComponentsFactory<PetriNet,
Transition> - Returns:
- policy used by the analyzer
-
getEnabledEventsBuilder
Description copied from interface:AnalyzerComponentsFactory
Returns the builder for the events enabled in a state.- Specified by:
getEnabledEventsBuilder
in interfaceAnalyzerComponentsFactory<PetriNet,
Transition> - Returns:
- enabled events builder used by the analyzer
-
getSuccessionEvaluator
Description copied from interface:AnalyzerComponentsFactory
Returns the builder for the successor states after an event.- Specified by:
getSuccessionEvaluator
in interfaceAnalyzerComponentsFactory<PetriNet,
Transition> - Returns:
- succession evaluator used by the analyzer
-
getPreProcessor
Description copied from interface:AnalyzerComponentsFactory
Returns the pre-processor used before computing the enabled events.- Specified by:
getPreProcessor
in interfaceAnalyzerComponentsFactory<PetriNet,
Transition> - Returns:
- pre-processor used by the analyzer
-
getPostProcessor
Description copied from interface:AnalyzerComponentsFactory
Returns the post-processor used after computing a successor state.- Specified by:
getPostProcessor
in interfaceAnalyzerComponentsFactory<PetriNet,
Transition> - Returns:
- post-processor used by the analyzer
-
getLocalStopCriterion
Description copied from interface:AnalyzerComponentsFactory
Returns the criterion to arrest the enumeration on a specific node.- Specified by:
getLocalStopCriterion
in interfaceAnalyzerComponentsFactory<PetriNet,
Transition> - Returns:
- local criterion used by the analyzer
-
getGlobalStopCriterion
Description copied from interface:AnalyzerComponentsFactory
Returns the criterion to arrest the entire graph enumeration.- Specified by:
getGlobalStopCriterion
in interfaceAnalyzerComponentsFactory<PetriNet,
Transition> - Returns:
- global criterion used by the analyzer
-