com.biocomfort.TO
Enum DeviceSpeedState

java.lang.Object
  extended by java.lang.Enum<DeviceSpeedState>
      extended by com.biocomfort.TO.DeviceSpeedState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DeviceSpeedState>

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

The enumeration DeviceOnlineState contains the possible speed states of a medical device.

The communication speed of a device is increased automatically if it communicates with the dongle (gateway) and is decreased if some inactive time has elapsed, on unbinding the device or on exiting the sdk.

Note: A fast device speed will result in a higher power consumption of the battery. Therefore it should be managed automatically.

See Also:
MedicalDeviceTO.getSpeedState()

Enum Constant Summary
FAST
          The temporary speed state of a medical device when it communicates.
STANDBY
          The standard speed state of a medical device.
UNDEFINED
          The initial speed state of a medical device.
 
Method Summary
static DeviceSpeedState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DeviceSpeedState[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNDEFINED

public static final DeviceSpeedState UNDEFINED
The initial speed state of a medical device. As soon as a medical device appears in range and its speed can be detected this state changes to DeviceSpeedState.STANDBY or DeviceSpeedState.FAST.


STANDBY

public static final DeviceSpeedState STANDBY
The standard speed state of a medical device.

Before any request is sent to a medical device its speed will be increased and after some inactive time decreased again.


FAST

public static final DeviceSpeedState FAST
The temporary speed state of a medical device when it communicates.

Before any request is sent to a medical device its speed will be increased and after some inactive time decreased again.

Method Detail

values

public static final DeviceSpeedState[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(DeviceSpeedState c : DeviceSpeedState.values())
        System.out.println(c);

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

valueOf

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