Package org.oristool.models.gspn.chains
Class CTMCTransient.Builder<M,S extends CTMCState<M>>
java.lang.Object
org.oristool.models.gspn.chains.CTMCTransient.Builder<M,S>
- Enclosing class:
- CTMCTransient<M,
S extends CTMCState<M>>
-
Method Summary
Modifier and TypeMethodDescriptionabstract CTMCTransient<M,S> build()Builds a new instance with the provided configurations.abstract CTMCTransient.Builder<M,S> epsilon(double value) Sets the threshold used to decide whether a probability value should be considered equal to0.0.abstract CTMCTransient.Builder<M,S> error(double value) Sets the allowed error in the computation of Poisson probabilities with Fox-Glynn algorithm (for each time point).abstract CTMCTransient.Builder<M,S> logger(AnalysisLogger value) Sets the logger used by this analysis.abstract CTMCTransient.Builder<M,S> monitor(AnalysisMonitor value) Sets the monitor used by this analysis.
-
Method Details
-
error
Sets the allowed error in the computation of Poisson probabilities with Fox-Glynn algorithm (for each time point).By default, it is equal to
1e-6.- Parameters:
value- allowed error in Poisson probabilities- Returns:
- this builder instance
-
epsilon
Sets the threshold used to decide whether a probability value should be considered equal to0.0.By default, it is equal to
1e-9.- Parameters:
value- the threshold used in comparisons to0.0- 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
CTMCTransientinstance
-