de.unikassel.android.sdcframework.devices.facade
Enum SensorDevicePriorities

Package class diagram package SensorDevicePriorities
java.lang.Object
  extended by java.lang.Enum<SensorDevicePriorities>
      extended by de.unikassel.android.sdcframework.devices.facade.SensorDevicePriorities
All Implemented Interfaces:
Serializable, Comparable<SensorDevicePriorities>

public enum SensorDevicePriorities
extends Enum<SensorDevicePriorities>

Priorities for sensor device samples.

For the moment we do know 5 different priority level. The lower the number the higher is the priority.
Priority levels are used to classify the sensor data samples for transmission purpose.


Enum Constant Summary
Level0
          level 0 ( highest priority )
Level1
          level 1
Level2
          level 2 ( medium priority )
Level3
          level 3
Level4
          level 4 ( lowest priority )
 
Method Summary
static SensorDevicePriorities valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SensorDevicePriorities[] 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

Level0

public static final SensorDevicePriorities Level0
level 0 ( highest priority )


Level1

public static final SensorDevicePriorities Level1
level 1


Level2

public static final SensorDevicePriorities Level2
level 2 ( medium priority )


Level3

public static final SensorDevicePriorities Level3
level 3


Level4

public static final SensorDevicePriorities Level4
level 4 ( lowest priority )

Method Detail

values

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

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

valueOf

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