|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SimulationState>
org.eclipse.ohf.stem.jobs.simulation.SimulationState
public enum SimulationState
This enumeration defines the states that a Simulation can be in.
SimulationEvent
,
ISimulationListener
,
ISimulation
Enum Constant Summary | |
---|---|
COMPLETED_CYCLE
When the simulation has completed one cycle of a simulation sequence. |
|
COMPLETED_SEQUENCE
When the simulation has completed all of the sequences in the simulation. |
|
PAUSED
When the simulation is not scheduled for execution, but it still retains its scenario which maintains its state information. |
|
RESET
The Simulation's Scenario is being reset to its initial state. |
|
RUNNING
When the simulation has been scheduled for execution and is running. |
|
STOPPED
The simulation is being removed from the simulation manager and its state information destroyed. |
Method Summary | |
---|---|
static SimulationState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SimulationState[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SimulationState RUNNING
The next state is COMPLETED_CYCLE
.
COMPLETED_CYCLE
public static final SimulationState COMPLETED_CYCLE
The next states are COMPLETED_CYCLE
,
COMPLETED_SEQUENCE
, PAUSED
, RESET
,
STOPPED
.
COMPLETED_CYCLE
,
COMPLETED_SEQUENCE
,
PAUSED
,
RESET
,
STOPPED
public static final SimulationState COMPLETED_SEQUENCE
The next states are COMPLETED_CYCLE
, PAUSED
,
RESET
, STOPPED
.
PAUSED
,
RESET
,
STOPPED
public static final SimulationState PAUSED
The next states are RUNNING
, RESET
, STOPPED
RUNNING
,
RESET
,
STOPPED
public static final SimulationState RESET
The next states are PAUSED
, STOPPED
PAUSED
,
STOPPED
,
Scenario.reset()
public static final SimulationState STOPPED
SimulationManager
Method Detail |
---|
public static final SimulationState[] values()
for(SimulationState c : SimulationState.values()) System.out.println(c);
public static SimulationState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |