org.universAAL.lddi.lib.activityhub.devicemodel
Enum UsageSensorEvent

Package class diagram package UsageSensorEvent
java.lang.Object
  extended by java.lang.Enum<UsageSensorEvent>
      extended by org.universAAL.lddi.lib.activityhub.devicemodel.UsageSensorEvent
All Implemented Interfaces:
Serializable, Comparable<UsageSensorEvent>

public enum UsageSensorEvent
extends Enum<UsageSensorEvent>

sensor events of usage sensor ISO 11073-10471

Author:
Thomas Fuxreiter (foex@gmx.at)

Enum Constant Summary
ABSENCE_VIOLATION
           
EXPECTED_USE_START_VIOLATION
           
EXPECTED_USE_STOP_VIOLATION
           
NO_CONDITION_DETECTED
           
USAGE_ENDED
           
USAGE_STARTED
           
 
Method Summary
static UsageSensorEvent getUsageSensorEvent(int val)
          convert int to enum item
static UsageSensorEvent toUsageSensorEvent(String str)
          convert String to enum item
 int value()
           
static UsageSensorEvent valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UsageSensorEvent[] 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

USAGE_STARTED

public static final UsageSensorEvent USAGE_STARTED

USAGE_ENDED

public static final UsageSensorEvent USAGE_ENDED

EXPECTED_USE_START_VIOLATION

public static final UsageSensorEvent EXPECTED_USE_START_VIOLATION

EXPECTED_USE_STOP_VIOLATION

public static final UsageSensorEvent EXPECTED_USE_STOP_VIOLATION

ABSENCE_VIOLATION

public static final UsageSensorEvent ABSENCE_VIOLATION

NO_CONDITION_DETECTED

public static final UsageSensorEvent NO_CONDITION_DETECTED
Method Detail

values

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

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

valueOf

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

value

public int value()

toUsageSensorEvent

public static UsageSensorEvent toUsageSensorEvent(String str)
convert String to enum item

Parameters:
str -
Returns:
enum item

getUsageSensorEvent

public static UsageSensorEvent getUsageSensorEvent(int val)
convert int to enum item

Parameters:
int -
Returns:
enum item


Copyright © 2014 universAAL Consortium. All Rights Reserved.