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
ConstructorDescriptionBuilds 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 initialState
instance 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.AGE
checkNewlyEnabled
- whether to check newly-enabled sets in state comparisonsexcludeZeroProb
- whether to exclude firing with zero probabilitymarkRegenerations
- whether to annotate states withRegeneration
objectsenablingSyncs
- 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.AGE
checkNewlyEnabled
- whether to check newly-enabled sets in state comparisonsexcludeZeroProb
- whether to exclude firing with zero probabilitymarkRegenerations
- whether to annotate states withRegeneration
objectsenablingSyncs
- 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.AGE
checkNewlyEnabled
- whether to check newly-enabled sets in state comparisonsexcludeZeroProb
- whether to exclude firing with zero probabilitymarkRegenerations
- whether to annotate states withRegeneration
objectsenablingSyncs
- 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: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
-
buildInitialState
Builds an initialState
instance from a marking.The state includes a
PetriStateFeature
and aTimedStateFeature
.The
TimedStateFeature
will includeVariable.AGE
if this factory was initialized withtransientAnalysis == true
.The
PetriStateFeature
will 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
PetriStateFeature
andTimedStateFeature
-