org.android.activityminer.model.timeseries
Enum SensorObservationDimensions

Package class diagram package SensorObservationDimensions
java.lang.Object
  extended by java.lang.Enum<SensorObservationDimensions>
      extended by org.android.activityminer.model.timeseries.SensorObservationDimensions
All Implemented Interfaces:
Serializable, Comparable<SensorObservationDimensions>, Dimensions

public enum SensorObservationDimensions
extends Enum<SensorObservationDimensions>
implements Dimensions

The dimensions for the sensor data observation from all known sensors.


Enum Constant Summary
ACCX
          The x-axis acceleration
ACCY
          The y-axis acceleration
ACCZ
          The z-axis acceleration
GX
          The force of gravity for axis x
GY
          The force of gravity for axis y
GZ
          The force of gravity for axis z
HORIZONTAL_MAGNITUDE
          The magnitude of horizontal acceleration
LATITUDE
          The location latitude.
LONGITUDE
          The location longitude.
MAGNITUDE
          The norm ( sqrt( accx^2 + accy^2 + accz^2) ), respectively the magnitude of acceleration (to ignore the device orientation).
SPEED
          The speed over ground from the network location provider.
VERTICAL_MAGNITUDE
          The magnitude of vertical acceleration
 
Field Summary
private  int id
          The unique dimension identifier
 
Method Summary
 int getId()
          Getter for the unique dimension identifier
static SensorObservationDimensions valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SensorObservationDimensions[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MAGNITUDE

public static final SensorObservationDimensions MAGNITUDE
The norm ( sqrt( accx^2 + accy^2 + accz^2) ), respectively the magnitude of acceleration (to ignore the device orientation).


ACCX

public static final SensorObservationDimensions ACCX
The x-axis acceleration


ACCY

public static final SensorObservationDimensions ACCY
The y-axis acceleration


ACCZ

public static final SensorObservationDimensions ACCZ
The z-axis acceleration


GX

public static final SensorObservationDimensions GX
The force of gravity for axis x


GY

public static final SensorObservationDimensions GY
The force of gravity for axis y


GZ

public static final SensorObservationDimensions GZ
The force of gravity for axis z


HORIZONTAL_MAGNITUDE

public static final SensorObservationDimensions HORIZONTAL_MAGNITUDE
The magnitude of horizontal acceleration


VERTICAL_MAGNITUDE

public static final SensorObservationDimensions VERTICAL_MAGNITUDE
The magnitude of vertical acceleration


LONGITUDE

public static final SensorObservationDimensions LONGITUDE
The location longitude.


LATITUDE

public static final SensorObservationDimensions LATITUDE
The location latitude.


SPEED

public static final SensorObservationDimensions SPEED
The speed over ground from the network location provider.

Field Detail

id

private final int id
The unique dimension identifier

Method Detail

values

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

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

valueOf

public static SensorObservationDimensions 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
NullPointerException - if the argument is null

getId

public int getId()
Description copied from interface: Dimensions
Getter for the unique dimension identifier

Specified by:
getId in interface Dimensions
Returns:
the name