com.biocomfort.TO
Enum DeviceOnlineState

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

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

The enumeration DeviceOnlineState contains the possible online states of a medical device. At the time the only possible states are online or offline.

See Also:
MedicalDeviceTO.getOnlineState()

Enum Constant Summary
OFFLINE
          The initial online state of a medical device.
ONLINE
          Indicates that the medical device is online.
 
Method Summary
static DeviceOnlineState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DeviceOnlineState[] 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

OFFLINE

public static final DeviceOnlineState OFFLINE
The initial online state of a medical device. As soon as a device appears in range its online state will be set to DeviceOnlineState.ONLINE. After a device is not visible for some time the online state will change to DeviceOnlineState.OFFLINE.

It is only possible to interact with online medical devices.


ONLINE

public static final DeviceOnlineState ONLINE
Indicates that the medical device is online. The availability of a online device depends on its binding state.

See Also:
DeviceBindingState
Method Detail

values

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

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

valueOf

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