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
ConstructorsConstructorDescriptionStochasticComponentsFactory(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.AGEtokensRemover- 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.AGEtokensRemover- 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:AnalyzerComponentsFactoryReturns the policy selecting the next event to explore.- Specified by:
getEnumerationPolicyin interfaceAnalyzerComponentsFactory<PetriNet,Transition> - Returns:
- policy used by the analyzer
-
getEnabledEventsBuilder
Description copied from interface:AnalyzerComponentsFactoryReturns the builder for the events enabled in a state.- Specified by:
getEnabledEventsBuilderin interfaceAnalyzerComponentsFactory<PetriNet,Transition> - Returns:
- enabled events builder used by the analyzer
-
getSuccessionEvaluator
Description copied from interface:AnalyzerComponentsFactoryReturns the builder for the successor states after an event.- Specified by:
getSuccessionEvaluatorin interfaceAnalyzerComponentsFactory<PetriNet,Transition> - Returns:
- succession evaluator used by the analyzer
-
getPreProcessor
Description copied from interface:AnalyzerComponentsFactoryReturns the pre-processor used before computing the enabled events.- Specified by:
getPreProcessorin interfaceAnalyzerComponentsFactory<PetriNet,Transition> - Returns:
- pre-processor used by the analyzer
-
getPostProcessor
Description copied from interface:AnalyzerComponentsFactoryReturns the post-processor used after computing a successor state.- Specified by:
getPostProcessorin interfaceAnalyzerComponentsFactory<PetriNet,Transition> - Returns:
- post-processor used by the analyzer
-
getLocalStopCriterion
Description copied from interface:AnalyzerComponentsFactoryReturns the criterion to arrest the enumeration on a specific node.- Specified by:
getLocalStopCriterionin interfaceAnalyzerComponentsFactory<PetriNet,Transition> - Returns:
- local criterion used by the analyzer
-
getGlobalStopCriterion
Description copied from interface:AnalyzerComponentsFactoryReturns the criterion to arrest the entire graph enumeration.- Specified by:
getGlobalStopCriterionin interfaceAnalyzerComponentsFactory<PetriNet,Transition> - Returns:
- global criterion used by the analyzer
-