Enum Status
-
- All Implemented Interfaces:
public enum Status
This enum represents the possible states in which a Simulation could be.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INIT
The simulation is being initialized.
READY
The simulation is ready to be started.
PAUSED
The simulation is paused. It can be resumed.
RUNNING
The simulation is currently running.
TERMINATED
The simulation is stopped. It is no longer possible to resume it.
-
Method Summary
-
-
Method Detail
-
isReachableFrom
boolean isReachableFrom(Status s)
- Parameters:
s
- the destination status- Returns:
true if the provided status can be reached from this status (i.e., if the simulation lifecycle allows to get from the current status to the provided one).
-
values
static Array<Status> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-