com.myzeo.decoder
Enum WriteReason

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

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

Specifies the reason this record was written to the SD card.


Enum Constant Summary
FS_REASON_24_HOUR_UPDATE
          Record is written out at noon every day.
FS_REASON_ALARM_OFF
          A ringing alarm was turned off, either by the user or because it timed out.
FS_REASON_CARD_INSERT
          Unit was powered on with SD card inserted, or SD card was inserted in a unit that was already powered on.
FS_REASON_NIGHT_END
          Sleep algorithm transitioned from tentative idle mode to idle mode.
FS_REASON_SLEEP_RATED
          When the user enters a 'morning feel' sleep rating on the bedside display, a write is triggered.
FS_REASON_TENTATIVE_NIGHT_END
          Sleep algorithm transitioned from active mode to tentative idle mode.
 
Method Summary
static WriteReason convert(int i)
           
static WriteReason valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WriteReason[] 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

FS_REASON_TENTATIVE_NIGHT_END

public static final WriteReason FS_REASON_TENTATIVE_NIGHT_END
Sleep algorithm transitioned from active mode to tentative idle mode.


FS_REASON_NIGHT_END

public static final WriteReason FS_REASON_NIGHT_END
Sleep algorithm transitioned from tentative idle mode to idle mode.


FS_REASON_ALARM_OFF

public static final WriteReason FS_REASON_ALARM_OFF
A ringing alarm was turned off, either by the user or because it timed out.


FS_REASON_CARD_INSERT

public static final WriteReason FS_REASON_CARD_INSERT
Unit was powered on with SD card inserted, or SD card was inserted in a unit that was already powered on.


FS_REASON_24_HOUR_UPDATE

public static final WriteReason FS_REASON_24_HOUR_UPDATE
Record is written out at noon every day.


FS_REASON_SLEEP_RATED

public static final WriteReason FS_REASON_SLEEP_RATED
When the user enters a 'morning feel' sleep rating on the bedside display, a write is triggered.

Method Detail

values

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

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

valueOf

public static WriteReason 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 WriteReason convert(int i)

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