Package org.oristool.models.tpn
Class TimedAnalysis.Builder
java.lang.Object
org.oristool.models.tpn.TimedAnalysis.Builder
- Enclosing class:
- TimedAnalysis
-
Method Summary
Modifier and TypeMethodDescriptionabstract TimedAnalysis
build()
Builds a new instance with the provided configurations.abstract TimedAnalysis.Builder
excludeZeroProb
(boolean value) Sets whether or not this analysis should exclude transition firings with zero probability.abstract TimedAnalysis.Builder
includeAge
(boolean value) Sets whether or not this analysis should addVariable.AGE
to the set of enabled variables.abstract TimedAnalysis.Builder
logger
(AnalysisLogger value) Sets the logger used by this analysis.abstract TimedAnalysis.Builder
markRegenerations
(boolean value) Sets whether or not this analysis should add theRegeneration
property to states.abstract TimedAnalysis.Builder
monitor
(AnalysisMonitor value) Sets the monitor used by this analysis.abstract TimedAnalysis.Builder
policy
(Supplier<EnumerationPolicy> value) Sets the supplier of enumeration policies used by this analysis.abstract TimedAnalysis.Builder
stopOn
(Supplier<StopCriterion> value) Sets the supplier of local stop criterion instances used by this analysis.stopOn
(MarkingCondition value) Uses a marking condition to create local stop criterion instances used by this analysis.
-
Method Details
-
includeAge
Sets whether or not this analysis should addVariable.AGE
to the set of enabled variables.This property is false by default.
- Parameters:
value
- whether the analysis should include the age variable- Returns:
- this builder instance
-
markRegenerations
Sets whether or not this analysis should add theRegeneration
property to states.This property is false by default.
- Parameters:
value
- whether the analysis should find regenerations- Returns:
- this builder instance
-
excludeZeroProb
Sets whether or not this analysis should exclude transition firings with zero probability.This property is false by default.
- Parameters:
value
- whether the analysis should exclude transitions with zero probability- Returns:
- this builder instance
-
policy
Sets the supplier of enumeration policies used by this analysis.A new policy instance is generated for each run.
By default, a FIFO policy is used.
- Parameters:
value
- the supplier of state class expansion policies- Returns:
- this builder instance
-
stopOn
Uses a marking condition to create 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.- Parameters:
value
- the supplier of local stop criterion- Returns:
- this builder instance
-
stopOn
Sets 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.
- Parameters:
value
- the supplier of local stop criterion- Returns:
- this builder instance
-
monitor
Sets 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.
- Parameters:
value
- the monitor used by this analysis- Returns:
- this builder instance
-
logger
Sets the logger used by this analysis. It is used to print progress information.By default, logs are discarded.
- Parameters:
value
- the logger used by this analysis- Returns:
- this builder instance
-
build
Builds a new instance with the provided configurations.- Returns:
- a new
TimedAnalysis
instance
-