Package org.oristool.models.stpn.steady
Class RegSteadyState
java.lang.Object
org.oristool.models.stpn.steady.RegSteadyState
- All Implemented Interfaces:
Engine<PetriNet,Marking, SteadyStateSolution<Marking>>
public abstract class RegSteadyState
extends Object
implements Engine<PetriNet,Marking,SteadyStateSolution<Marking>>
Steady-state analysis of STPNs using trees of stochastic state classes
between regenerations.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RegSteadyState.Builderbuilder()Creates a builder for analysis configurations (with default values).booleanChecks if the analysis can be applied to the given model.Runs this analysis on a given Petri net from an initial marking.abstract AnalysisLoggerlogger()Returns the logger used by this analysis.abstract AnalysisMonitormonitor()Returns the monitor used by this analysis.abstract Supplier<StopCriterion>stopOn()Returns the supplier of local stop criterion instances used by this analysis.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.oristool.models.Engine
canAnalyze
-
Method Details
-
stopOn
Returns the supplier of local stop criterion instances used by this analysis. It can be used to avoid the expansion of some state classes, as if their states were absorbing.A stop criterion instance is generated for each run.
By default, an always-false local stop criterion is used.
- Returns:
- the supplier of local stop criterion
-
monitor
Returns the monitor used by this analysis. It is used to stop the analysis early and to notify messages to the user.By default, an always-false, message-discarding monitor is used.
- Returns:
- the monitor used by this analysis
-
logger
Returns the logger used by this analysis. It is used to print progress information.By default, logs are discarded.
- Returns:
- the logger used by this analysis
-
builder
Creates a builder for analysis configurations (with default values).- Returns:
- a builder of
TimedAnalysisinstances.
-
compute
Runs this analysis on a given Petri net from an initial marking.- Specified by:
computein interfaceEngine<PetriNet,Marking, SteadyStateSolution<Marking>> - Parameters:
pn- the input Petri netm- the initial marking- Returns:
- a succession graph encoding the state class graph
- Throws:
IllegalArgumentException- if the analysis is not applicable to the input Petri net
-
canAnalyze
Description copied from interface:EngineChecks if the analysis can be applied to the given model.Problems are collected in a
ValidationMessageCollector.- Specified by:
canAnalyzein interfaceEngine<PetriNet,Marking, SteadyStateSolution<Marking>> - Parameters:
pn- input model (such as a Petri net)c- collector of error messages- Returns:
- true if the analysis can be applied to the given model
-