Enum SensorType

java.lang.Object
  extended by java.lang.Enum<SensorType>
      extended by SensorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SensorType>, VariableType

public enum SensorType
extends java.lang.Enum<SensorType>
implements VariableType

An implementation of a particular VariableType that represents the subset of the different sensor channels that can be sampled from the Finch. In particular, this subset is those sensor channels that we will want to sort our samples by.

Author:
Andrew H. Fagg and Steven Ness

Enum Constant Summary
ACCEL_X
           
ACCEL_Y
           
ACCEL_Z
           
LIGHT_LEFT
           
LIGHT_RIGHT
           
TEMPERATURE
           
 
Field Summary
private  java.lang.String printname
           
 
Method Summary
 java.lang.String toString()
          toString() override
static SensorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SensorType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LIGHT_LEFT

public static final SensorType LIGHT_LEFT

LIGHT_RIGHT

public static final SensorType LIGHT_RIGHT

ACCEL_X

public static final SensorType ACCEL_X

ACCEL_Y

public static final SensorType ACCEL_Y

ACCEL_Z

public static final SensorType ACCEL_Z

TEMPERATURE

public static final SensorType TEMPERATURE
Field Detail

printname

private java.lang.String printname
Method Detail

values

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

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

valueOf

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

toString

public java.lang.String toString()
toString() override

Overrides:
toString in class java.lang.Enum<SensorType>
Returns:
Returns the string that describes this enummerated value