de.bsvrz.puk.config.main.simulation
Enum SimulationState

java.lang.Object
  extended by java.lang.Enum<SimulationState>
      extended by 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

Enum Constant Summary
DELETED
           
NEW
           
PAUSE
           
PRESTART
           
START
           
STOP
           
 
Method Summary
 int getCode()
           
static SimulationState getInstance(int code)
           
static SimulationState getInstance(String state)
           
 String getState()
           
 String toString()
           
static SimulationState valueOf(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
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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>