Package org.oristool.models.tpn
Class TimedComponentsFactory
java.lang.Object
org.oristool.models.tpn.TimedComponentsFactory
- All Implemented Interfaces:
AnalyzerComponentsFactory<PetriNet,Transition>
public final class TimedComponentsFactory
extends Object
implements AnalyzerComponentsFactory<PetriNet,Transition>
Factory of objects to explore the state space of a time Petri net using
Analyzer.-
Constructor Summary
ConstructorsConstructorDescriptionBuilds a default factory for TPN analysis.TimedComponentsFactory(boolean transientAnalysis, boolean checkNewlyEnabled, boolean excludeZeroProb, boolean markRegenerations, boolean enablingSyncs, EnumerationPolicy policy, StopCriterion stopCondition, AnalysisMonitor monitor, MarkingUpdater tokensRemover, MarkingUpdater tokensAdder) Builds a factory for TPN analysis.TimedComponentsFactory(boolean transientAnalysis, boolean checkNewlyEnabled, boolean excludeZeroProb, boolean markRegenerations, boolean enablingSyncs, EnumerationPolicy policy, MarkingCondition stopCondition, AnalysisMonitor monitor) Builds a factory for TPN analysis.TimedComponentsFactory(boolean transientAnalysis, boolean checkNewlyEnabled, boolean excludeZeroProb, boolean markRegenerations, boolean enablingSyncs, EnumerationPolicy policy, MarkingCondition stopCondition, AnalysisMonitor monitor, MarkingUpdater tokensRemover, MarkingUpdater tokensAdder) Builds a factory for TPN analysis. -
Method Summary
Modifier and TypeMethodDescriptionbuildInitialState(PetriNet pn, Marking initialMarking) Builds an initialStateinstance from a marking.Returns 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
-
TimedComponentsFactory
public TimedComponentsFactory()Builds a default factory for TPN analysis. -
TimedComponentsFactory
public TimedComponentsFactory(boolean transientAnalysis, boolean checkNewlyEnabled, boolean excludeZeroProb, boolean markRegenerations, boolean enablingSyncs, EnumerationPolicy policy, MarkingCondition stopCondition, AnalysisMonitor monitor) Builds a factory for TPN analysis.- Parameters:
transientAnalysis- whether to includeVariable.AGEcheckNewlyEnabled- whether to check newly-enabled sets in state comparisonsexcludeZeroProb- whether to exclude firing with zero probabilitymarkRegenerations- whether to annotate states withRegenerationobjectsenablingSyncs- whether to use enabling synchronizations when checking for regenerationspolicy- state enumeration policystopCondition- stop conditionmonitor- analysis monitor
-
TimedComponentsFactory
public TimedComponentsFactory(boolean transientAnalysis, boolean checkNewlyEnabled, boolean excludeZeroProb, boolean markRegenerations, boolean enablingSyncs, EnumerationPolicy policy, MarkingCondition stopCondition, AnalysisMonitor monitor, MarkingUpdater tokensRemover, MarkingUpdater tokensAdder) Builds a factory for TPN analysis.- Parameters:
transientAnalysis- whether to includeVariable.AGEcheckNewlyEnabled- whether to check newly-enabled sets in state comparisonsexcludeZeroProb- whether to exclude firing with zero probabilitymarkRegenerations- whether to annotate states withRegenerationobjectsenablingSyncs- whether to use enabling synchronizations when checking for regenerationspolicy- state enumeration policystopCondition- stop conditionmonitor- analysis monitortokensRemover- component used to remove tokenstokensAdder- component used to add tokens
-
TimedComponentsFactory
public TimedComponentsFactory(boolean transientAnalysis, boolean checkNewlyEnabled, boolean excludeZeroProb, boolean markRegenerations, boolean enablingSyncs, EnumerationPolicy policy, StopCriterion stopCondition, AnalysisMonitor monitor, MarkingUpdater tokensRemover, MarkingUpdater tokensAdder) Builds a factory for TPN analysis.- Parameters:
transientAnalysis- whether to includeVariable.AGEcheckNewlyEnabled- whether to check newly-enabled sets in state comparisonsexcludeZeroProb- whether to exclude firing with zero probabilitymarkRegenerations- whether to annotate states withRegenerationobjectsenablingSyncs- whether to use enabling synchronizations when checking for regenerationspolicy- state enumeration policystopCondition- stop conditionmonitor- analysis monitortokensAdder- object used to remove tokenstokensRemover- object used to add tokens
-
-
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
-
buildInitialState
Builds an initialStateinstance from a marking.The state includes a
PetriStateFeatureand aTimedStateFeature.The
TimedStateFeaturewill includeVariable.AGEif this factory was initialized withtransientAnalysis == true.The
PetriStateFeaturewill distinguish states with the same marking but different sets of newly enabled transitions if this factory was initialized withcheckNewlyEnabled == true.- Parameters:
pn- Petri net associated with the markinginitialMarking- initial marking- Returns:
- a state instance with
PetriStateFeatureandTimedStateFeature
-