org.android.activityminer.model.timeseries
Enum AccSensorObservationDimensions

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

public enum AccSensorObservationDimensions
extends Enum<AccSensorObservationDimensions>
implements Dimensions

The dimensions of a accelerometer sensor observation.


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
MAGNITUDE
          The norm ( sqrt( accx^2 + accy^2 + accz^2) ), respectively the magnitude of acceleration (to ignore the device orientation).
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 AccSensorObservationDimensions valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AccSensorObservationDimensions[] 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 AccSensorObservationDimensions MAGNITUDE
The norm ( sqrt( accx^2 + accy^2 + accz^2) ), respectively the magnitude of acceleration (to ignore the device orientation).


ACCX

public static final AccSensorObservationDimensions ACCX
The x-axis acceleration


ACCY

public static final AccSensorObservationDimensions ACCY
The y-axis acceleration


ACCZ

public static final AccSensorObservationDimensions ACCZ
The z-axis acceleration


GX

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


GY

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


GZ

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


HORIZONTAL_MAGNITUDE

public static final AccSensorObservationDimensions HORIZONTAL_MAGNITUDE
The magnitude of horizontal acceleration


VERTICAL_MAGNITUDE

public static final AccSensorObservationDimensions VERTICAL_MAGNITUDE
The magnitude of vertical acceleration

Field Detail

id

private final int id
The unique dimension identifier

Method Detail

values

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

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

valueOf

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