de.Android_Seminar.backend
Enum SensorType

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

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

A enumeration for the different sensors that can be accessed through the sensor recording back end (SensorController).

Author:
jonas

Enum Constant Summary
ACCELEROMETER
           
AUDIO_SENSOR
           
COMPASS
           
GPS_SENSOR
           
GYROSKOPE
           
LIGHT_SENSOR
           
ORIENTATION
           
PRESSURE
           
PROXIMITY_SENSOR
           
TEMPERATURE
           
 
Method Summary
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
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PROXIMITY_SENSOR

public static final SensorType PROXIMITY_SENSOR

COMPASS

public static final SensorType COMPASS

ACCELEROMETER

public static final SensorType ACCELEROMETER

LIGHT_SENSOR

public static final SensorType LIGHT_SENSOR

AUDIO_SENSOR

public static final SensorType AUDIO_SENSOR

GPS_SENSOR

public static final SensorType GPS_SENSOR

GYROSKOPE

public static final SensorType GYROSKOPE

ORIENTATION

public static final SensorType ORIENTATION

PRESSURE

public static final SensorType PRESSURE

TEMPERATURE

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