public static enum Scheduler.SimulationState extends Enum<Scheduler.SimulationState>
Scheduler.getSimulationState()
Enum Constant and Description |
---|
PAUSED
The simulation is paused.
|
RUNNING
The simulation process is running normally.
|
SHUTDOWN
The simulation is ending
|
STEP
The scheduler will process one simulation step and then will be in the
PAUSED state. |
Modifier and Type | Method and Description |
---|---|
static Scheduler.SimulationState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scheduler.SimulationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scheduler.SimulationState RUNNING
public static final Scheduler.SimulationState STEP
PAUSED
state.public static final Scheduler.SimulationState PAUSED
public static final Scheduler.SimulationState SHUTDOWN
public static Scheduler.SimulationState[] values()
for (Scheduler.SimulationState c : Scheduler.SimulationState.values()) System.out.println(c);
public static Scheduler.SimulationState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
Fabien Michel, Olivier Gutknecht, Jacques Ferber - July 18 2017