com.greenthrottle.gcs.api
Enum ControllerInfo.ControllerState

java.lang.Object
  extended by java.lang.Enum<ControllerInfo.ControllerState>
      extended by com.greenthrottle.gcs.api.ControllerInfo.ControllerState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ControllerInfo.ControllerState>
Enclosing class:
ControllerInfo

public static enum ControllerInfo.ControllerState
extends java.lang.Enum<ControllerInfo.ControllerState>

State of this controller.

Author:
matth

Enum Constant Summary
CONNECTED_BOUND
          Connected and assigned to a player_id
CONNECTED_UNBOUND
          Connected, but not yet assigned a player_id
DISCONNECTED
          Disconnected
DISCOVERED
          Discovered, but not yet connected
INVALID
           
 
Method Summary
static ControllerInfo.ControllerState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ControllerInfo.ControllerState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INVALID

public static final ControllerInfo.ControllerState INVALID

DISCOVERED

public static final ControllerInfo.ControllerState DISCOVERED
Discovered, but not yet connected


CONNECTED_UNBOUND

public static final ControllerInfo.ControllerState CONNECTED_UNBOUND
Connected, but not yet assigned a player_id


CONNECTED_BOUND

public static final ControllerInfo.ControllerState CONNECTED_BOUND
Connected and assigned to a player_id


DISCONNECTED

public static final ControllerInfo.ControllerState DISCONNECTED
Disconnected

Method Detail

values

public static ControllerInfo.ControllerState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ControllerInfo.ControllerState c : ControllerInfo.ControllerState.values())
    System.out.println(c);

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

valueOf

public static ControllerInfo.ControllerState 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
java.lang.NullPointerException - if the argument is null