public enum SimulationState extends java.lang.Enum<SimulationState>
Stellt alle Zustände dar, die eine Simulation annehmen kann.
Enum Constant and Description |
---|
DELETED |
NEW |
PAUSE |
PRESTART |
START |
STOP |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static SimulationState |
getInstance(int code) |
static SimulationState |
getInstance(java.lang.String state) |
java.lang.String |
getState() |
java.lang.String |
toString() |
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 are declared.
|
public static final SimulationState NEW
public static final SimulationState PRESTART
public static final SimulationState START
public static final SimulationState STOP
public static final SimulationState DELETED
public static final SimulationState PAUSE
public static 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 namejava.lang.NullPointerException
- if the argument is nullpublic static final SimulationState getInstance(java.lang.String state)
public static final SimulationState getInstance(int code)
public java.lang.String getState()
public int getCode()
public java.lang.String toString()
toString
in class java.lang.Enum<SimulationState>