jfreerails.world.train
Enum SpeedTimeAndStatus.TrainActivity

java.lang.Object
  extended by java.lang.Enum<SpeedTimeAndStatus.TrainActivity>
      extended by jfreerails.world.train.SpeedTimeAndStatus.TrainActivity
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SpeedTimeAndStatus.TrainActivity>
Enclosing class:
SpeedTimeAndStatus

public static enum SpeedTimeAndStatus.TrainActivity
extends java.lang.Enum<SpeedTimeAndStatus.TrainActivity>


Enum Constant Summary
CRASHED
           
NEEDS_UPDATING
           
READY
           
STOPPED_AT_SIGNAL
           
STOPPED_AT_STATION
           
WAITING_FOR_FULL_LOAD
           
 
Method Summary
static SpeedTimeAndStatus.TrainActivity valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SpeedTimeAndStatus.TrainActivity[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STOPPED_AT_STATION

public static final SpeedTimeAndStatus.TrainActivity STOPPED_AT_STATION

READY

public static final SpeedTimeAndStatus.TrainActivity READY

WAITING_FOR_FULL_LOAD

public static final SpeedTimeAndStatus.TrainActivity WAITING_FOR_FULL_LOAD

STOPPED_AT_SIGNAL

public static final SpeedTimeAndStatus.TrainActivity STOPPED_AT_SIGNAL

CRASHED

public static final SpeedTimeAndStatus.TrainActivity CRASHED

NEEDS_UPDATING

public static final SpeedTimeAndStatus.TrainActivity NEEDS_UPDATING
Method Detail

values

public static final SpeedTimeAndStatus.TrainActivity[] 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(SpeedTimeAndStatus.TrainActivity c : SpeedTimeAndStatus.TrainActivity.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static SpeedTimeAndStatus.TrainActivity valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name