Package org.mpi_sws.jmc.checker
Class JmcCheckerConfiguration
java.lang.Object
org.mpi_sws.jmc.checker.JmcCheckerConfiguration
Configuration for the JMC checker.
This class encapsulates the configuration parameters for running the JMC checker, including the number of iterations, strategy type, debug mode, report path, seed, and timeout.
Use the JmcCheckerConfiguration.Builder to create a configuration instance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for JmcCheckerConfiguration -
Method Summary
Modifier and TypeMethodDescriptionstatic JmcCheckerConfigurationfromAnnotation(JmcCheckConfiguration annotation) Creates a JmcCheckerConfiguration from the given annotation.booleangetDebug()Returns the debug mode status.Returns the number of iterations to run the checker.Returns the path where the report will be saved.getSeed()Returns the seed for the checker.Returns the type of scheduling strategy to be used.Returns the timeout duration for the checker.voidSets the seed for the checker.Converts this configuration to a runtime configuration.
-
Method Details
-
getNumIterations
Returns the number of iterations to run the checker.- Returns:
- the number of iterations
-
getReportPath
Returns the path where the report will be saved.- Returns:
- the report path as a string
-
getStrategyType
Returns the type of scheduling strategy to be used.- Returns:
- the strategy type as a string
-
getDebug
public boolean getDebug()Returns the debug mode status.- Returns:
- true if debug mode is enabled, false otherwise
-
getSeed
Returns the seed for the checker.- Returns:
- the seed, or null if no seed is set
-
setSeed
Sets the seed for the checker.- Parameters:
seed- the seed to set.
-
getTimeout
Returns the timeout duration for the checker.- Returns:
- the timeout duration, or null if no timeout is set
-
toRuntimeConfiguration
Converts this configuration to a runtime configuration.- Returns:
- a
JmcRuntimeConfigurationbased on this configuration - Throws:
JmcInvalidStrategyException- if the strategy type is invalid or the strategy cannot be created
-
fromAnnotation
public static JmcCheckerConfiguration fromAnnotation(JmcCheckConfiguration annotation) throws JmcCheckerException Creates a JmcCheckerConfiguration from the given annotation.- Parameters:
annotation- the JmcCheckConfiguration annotation- Returns:
- a JmcCheckerConfiguration instance
- Throws:
JmcCheckerException- if the configuration is invalid
-