Enum Class Run.Status
- All Implemented Interfaces:
Serializable,Comparable<Run.Status>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRun has been completed normally or erroneously, simulation result has been obtained.Run had been unable to complete due to some external unhandled exception not linked with simulation logic error.Run has been started by callingRun.run()method and is currently in progress.Run has been queued for execution but hasn't started processing yet.Run is created but not yet started. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisFinal()static Run.StatusReturns the enum constant of this class with the specified name.static Run.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_STARTED
Run is created but not yet started. In this status:- The run already has its
Run.id()represented byShortIdinstance. Once a run is created, its id never changes. Run.result()is equal toOptional.empty()as there is no result yet.Run.completedFraction()returns 0 which represents that nothing has been simulated.Run.elapsedTimeMillis()returns 0 as there was no time spent doing the simulation
- The run already has its
-
IN_QUEUE
Run has been queued for execution but hasn't started processing yet. In this status:- The run already has its
Run.id()represented byShortIdinstance. Once a run is created, its id never changes. Run.result()is equal toOptional.empty()as there is no result yet.Run.completedFraction()returns 0 which represents that nothing has been simulated.Run.elapsedTimeMillis()returns 0 as there was no time spent doing the simulation
- The run already has its
-
IN_PROGRESS
Run has been started by callingRun.run()method and is currently in progress. In this status:Run.result()is still equal toOptional.empty()as it is only calculated upon finishing (normal or erroneous) of the simulation.Run.completedFraction()returns a value between 0 and 1 representing the degree of the simulation completion.Run.elapsedTimeMillis()returns a non-negative number of milliseconds elapsed from calling theRun.run()method
-
COMPLETED
Run has been completed normally or erroneously, simulation result has been obtained. In this status:Run.result()is not empty and contains an instance ofSimulationRunResult. Note that the result itself can indicate that errors occurred during simulation run. UseSimulationRunResult.hasErrors()method to check itRun.completedFraction()returns a value between 0 and 1 representing the fraction of the simulation experiment that was completed. Normally, if the simulation completes without errors,Run.completedFraction()returns 1.Run.elapsedTimeMillis()returns a non-negative number of milliseconds the run had been inIN_PROGRESSstatus.
-
ERROR
Run had been unable to complete due to some external unhandled exception not linked with simulation logic error. Result has not been obtained. In this status:Run.result()is still equal toOptional.empty()as it could not be reliably calculated or obtained due to the error.Run.completedFraction()returns a value between 0 and 1 representing the fraction of the simulation experiment that was completed.Run.elapsedTimeMillis()returns a non-negative number of milliseconds the run had been inIN_PROGRESSstatus.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isFinal
public boolean isFinal()
-