becker.robots
Enum StateChangeEventType

java.lang.Object
  extended by java.lang.Enum<StateChangeEventType>
      extended by becker.robots.StateChangeEventType
All Implemented Interfaces:
Serializable, Comparable<StateChangeEventType>

public enum StateChangeEventType
extends Enum<StateChangeEventType>


Enum Constant Summary
BEGIN_MOVING
          A robot has begun moving.
BEGIN_TURNING
          A robot has begun turning..
COLOR
          A Sim or Icon's color has changed.
END_MOVING
          A robot has stopped moving.
END_TURNING
          A robot has stopped turning.
LABEL
          A Sim or Icon's label has changed.
MOVING
          A robot is moving.
NEW_ICON
          A Sim has been given a new icon.
OFF
          Something has been turned "off".
ON
          Something has been turned "on".
TURNING
          A robot is turning.
 
Method Summary
static StateChangeEventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StateChangeEventType[] 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

BEGIN_MOVING

public static final StateChangeEventType BEGIN_MOVING
A robot has begun moving.


END_MOVING

public static final StateChangeEventType END_MOVING
A robot has stopped moving.


MOVING

public static final StateChangeEventType MOVING
A robot is moving.


BEGIN_TURNING

public static final StateChangeEventType BEGIN_TURNING
A robot has begun turning..


END_TURNING

public static final StateChangeEventType END_TURNING
A robot has stopped turning.


TURNING

public static final StateChangeEventType TURNING
A robot is turning.


ON

public static final StateChangeEventType ON
Something has been turned "on".


OFF

public static final StateChangeEventType OFF
Something has been turned "off".


NEW_ICON

public static final StateChangeEventType NEW_ICON
A Sim has been given a new icon.


COLOR

public static final StateChangeEventType COLOR
A Sim or Icon's color has changed.


LABEL

public static final StateChangeEventType LABEL
A Sim or Icon's label has changed.

Method Detail

values

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

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

valueOf

public static StateChangeEventType 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