de.bsvrz.puk.config.main.simulation
Enum SimulationState
java.lang.Object
java.lang.Enum<SimulationState>
de.bsvrz.puk.config.main.simulation.SimulationState
- All Implemented Interfaces:
- Serializable, Comparable<SimulationState>
public enum SimulationState
- extends Enum<SimulationState>
Stellt alle Zustände dar, die eine Simulation annehmen kann.
- Author:
- Achim Wullenkord (AW), Kappich Systemberatung
NEW
public static final SimulationState NEW
PRESTART
public static final SimulationState PRESTART
START
public static final SimulationState START
STOP
public static final SimulationState STOP
DELETED
public static final SimulationState DELETED
PAUSE
public static final SimulationState PAUSE
values
public static final SimulationState[] 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 as follows:
for(SimulationState c : SimulationState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static SimulationState 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.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
getInstance
public static final SimulationState getInstance(String state)
getInstance
public static final SimulationState getInstance(int code)
getState
public String getState()
getCode
public int getCode()
toString
public String toString()
- Overrides:
toString
in class Enum<SimulationState>