Package org.oristool.models.stpn.trees
Class RegenerativeComponentsFactory
java.lang.Object
org.oristool.models.stpn.trees.RegenerativeComponentsFactory
- All Implemented Interfaces:
AnalyzerComponentsFactory<PetriNet,Transition>
public final class RegenerativeComponentsFactory
extends Object
implements AnalyzerComponentsFactory<PetriNet,Transition>
Factory of objects to build the state space and PDFs of a stochastic time
Petri net using
Analyzer.
The analysis will not expand nodes resulting from a regeneration. The
resulting SuccessionGraph where the root and the leaves are
regenerations (while inner nodes are not).
-
Constructor Summary
ConstructorsConstructorDescriptionRegenerativeComponentsFactory(boolean transientAnalysis, MarkingUpdater tokensRemover, MarkingUpdater tokensAdder, boolean checkNewlyEnabled, SuccessionProcessor postProcessor, EnumerationPolicy policy, OmegaBigDecimal tauAgeLimit, StopCriterion stopCriterion, BigDecimal epsilon, int numSamples, AnalysisMonitor monitor) Builds a factory for STPN analysis.RegenerativeComponentsFactory(boolean transientAnalysis, MarkingUpdater tokensRemover, MarkingUpdater tokensAdder, boolean checkNewlyEnabled, SuccessionProcessor postProcessor, 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
-
RegenerativeComponentsFactory
public RegenerativeComponentsFactory(boolean transientAnalysis, MarkingUpdater tokensRemover, MarkingUpdater tokensAdder, boolean checkNewlyEnabled, SuccessionProcessor postProcessor, 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 comparisonspostProcessor- postprocessor to apply on each statepolicy- policy used to select the next nodetauAgeLimit- time bound for the analysisstopCondition- additional stop condition (the analysis always stops on regenerative nodes)epsilon- allowed error when comparing statesnumSamples- number of samples used to compare statesmonitor- analysis monitor
-
RegenerativeComponentsFactory
public RegenerativeComponentsFactory(boolean transientAnalysis, MarkingUpdater tokensRemover, MarkingUpdater tokensAdder, boolean checkNewlyEnabled, SuccessionProcessor postProcessor, 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 comparisonspostProcessor- postprocessor to apply on each statepolicy- policy used to select the next nodetauAgeLimit- time bound for the analysisstopCriterion- additional stop condition (the analysis always stops on regenerative nodes)epsilon- 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
-