com.greenthrottle.gcs.api
Enum ControllerEvent.AnalogDataType

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

public static enum ControllerEvent.AnalogDataType
extends java.lang.Enum<ControllerEvent.AnalogDataType>

Indicates type of analog event. X_DATA and Y_DATA are a value from -127...127 (with axis polarity matching the Cartesian plane)


Enum Constant Summary
INVALID
           
RESERVED
           
TWIST_DATA
           
TWIST_MAX
           
TWIST_MIN
           
X_DATA
           
X_MAX
           
X_MIN
           
Y_DATA
           
Y_MAX
           
Y_MIN
           
Z_DATA
           
Z_MAX
           
Z_MIN
           
 
Method Summary
static ControllerEvent.AnalogDataType makeFromInt(int codeValue)
           
static ControllerEvent.AnalogDataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ControllerEvent.AnalogDataType[] 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 ControllerEvent.AnalogDataType INVALID

X_MIN

public static final ControllerEvent.AnalogDataType X_MIN

X_MAX

public static final ControllerEvent.AnalogDataType X_MAX

Y_MIN

public static final ControllerEvent.AnalogDataType Y_MIN

Y_MAX

public static final ControllerEvent.AnalogDataType Y_MAX

Z_MIN

public static final ControllerEvent.AnalogDataType Z_MIN

Z_MAX

public static final ControllerEvent.AnalogDataType Z_MAX

TWIST_MIN

public static final ControllerEvent.AnalogDataType TWIST_MIN

TWIST_MAX

public static final ControllerEvent.AnalogDataType TWIST_MAX

X_DATA

public static final ControllerEvent.AnalogDataType X_DATA

Y_DATA

public static final ControllerEvent.AnalogDataType Y_DATA

Z_DATA

public static final ControllerEvent.AnalogDataType Z_DATA

TWIST_DATA

public static final ControllerEvent.AnalogDataType TWIST_DATA

RESERVED

public static final ControllerEvent.AnalogDataType RESERVED
Method Detail

values

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

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

valueOf

public static ControllerEvent.AnalogDataType 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

makeFromInt

public static ControllerEvent.AnalogDataType makeFromInt(int codeValue)