com.myzeo.decoder
Enum AlarmReason

java.lang.Object
  extended by java.lang.Enum<AlarmReason>
      extended by com.myzeo.decoder.AlarmReason
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AlarmReason>

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

Indicates the reason for the most recent alarm ringing.

REM_TO_NREM_TRANSITION, NREM_TO_REM_TRANSITION, WAKE_ON_WAKE, and DEEP_RISING only result from the SmartWake function. END_OF_WAKE_WINDOW results from either reaching the end of the wake window in SmartWake or reaching the alarm time in standard wake. NO_ALARM indicates that the alarm has not rung since the alarm reason was cleared.

The alarm reason is cleared to NO_ALARM on power-on, and is cleared to NO_ALARM when a new night of sleep begins.


Enum Constant Summary
DEEP_RISING
           
END_OF_WAKE_WINDOW
           
NO_ALARM
           
NREM_TO_REM_TRANSITION
           
REM_TO_NREM_TRANSITION
           
WAKE_ON_WAKE
           
 
Method Summary
static AlarmReason convert(int i)
           
static AlarmReason valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AlarmReason[] 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

REM_TO_NREM_TRANSITION

public static final AlarmReason REM_TO_NREM_TRANSITION

NREM_TO_REM_TRANSITION

public static final AlarmReason NREM_TO_REM_TRANSITION

WAKE_ON_WAKE

public static final AlarmReason WAKE_ON_WAKE

DEEP_RISING

public static final AlarmReason DEEP_RISING

END_OF_WAKE_WINDOW

public static final AlarmReason END_OF_WAKE_WINDOW

NO_ALARM

public static final AlarmReason NO_ALARM
Method Detail

values

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

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

valueOf

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

convert

public static AlarmReason convert(int i)

Copyright © 2010, Zeo, Inc. All rights reserved.