com.biocomfort.TO
Enum DeviceBindingState

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

public enum DeviceBindingState
extends java.lang.Enum<DeviceBindingState>
implements java.io.Serializable

The enummeration DeviceBindingState contains the possible binding states of a medical device. It provites also some progress information for binding / unbinding processes and shows the availablity of a medical devices.

It is only possible to interact with a device when its state is DeviceBindingState.BOUND or DeviceBindingState.UNBOUND. If the device is unbound the only available interation is to bind it.

See Also:
MedicalDeviceTO.getBindingState()

Enum Constant Summary
BINDING
          Indivates that a medical device is in progress to be bound at the current time.
BOUND
          Indicates that a medical device is bound and ready to use and to interact with it.
BUSY
          Indicates that the device is currently comunicating with the usb dongle (gateway).
TEMPORARY_BINDING
          Indicates that the medical device is currently binding.
TEMPORARY_BUSY
          Indicates that the device is currently comunicating with the usb dongle (gateway).
TEMPORARY_UNBINDING
          Indicates that the device is currently unbinding.
UNBINDING
          Indicates that a medical device is in progress to be unbound at the current time.
UNBOUND
          Indicates that a medical device is unbound and ready to bind it.
UNDEFINED
          The initial binding state of every medical device.
 
Method Summary
 int getValue()
          Returns an integer value that represents the medical device's binding state.
static DeviceBindingState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DeviceBindingState[] 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 DeviceBindingState UNDEFINED
The initial binding state of every medical device.

As soon as the device appears in rage the binding state changes to DeviceBindingState.BOUND or DeviceBindingState.UNBOUND.


UNBOUND

public static final DeviceBindingState UNBOUND
Indicates that a medical device is unbound and ready to bind it.

The SDK methods SKD.bindDevice() or SKD.bindDevices() can only be called for devices with the binding state DeviceBindingState.UNBOUND.

See Also:
SDK.bindDevice(MedicalDeviceTO), SDK.bindDevices(java.util.List)

BOUND

public static final DeviceBindingState BOUND
Indicates that a medical device is bound and ready to use and to interact with it.

All SDK methods that interact with a medical device or unbind it can only be called for devices with the binding state DeviceBindingState.BOUND


BINDING

public static final DeviceBindingState BINDING
Indivates that a medical device is in progress to be bound at the current time.

This is a temporary binding state that indicates that the device is not avalable for any interaction at this time.


UNBINDING

public static final DeviceBindingState UNBINDING
Indicates that a medical device is in progress to be unbound at the current time.

This is a temporary binding state that indicates that the device is not avalable for any interaction at this time.


BUSY

public static final DeviceBindingState BUSY
Indicates that the device is currently comunicating with the usb dongle (gateway).

This is a temporary binding state that indicates that the device is not avalable for any interaction at this time.


TEMPORARY_BUSY

public static final DeviceBindingState TEMPORARY_BUSY
Indicates that the device is currently comunicating with the usb dongle (gateway). After all requests are processed the medical device will we unbound automatically.

All temporary states are used to indicate the progress of the automatic update process of unbound devices.

This is a temporary binding state that indicates that the device is not avalable for any interaction at this time.

See Also:
SDK.setUnboundAutoUpdatePolicy( com.biocomfort.SDK.AutoUpdatePolicy)

TEMPORARY_BINDING

public static final DeviceBindingState TEMPORARY_BINDING
Indicates that the medical device is currently binding. After the device was bound and all requests are processed the medical device will we unbound automatically.

All temporary states are used to indicate the progress of the automatic update process of unbound devices.

This is a temporary binding state that indicates that the device is not avalable for any interaction at this time.

See Also:
SDK.setUnboundAutoUpdatePolicy( com.biocomfort.SDK.AutoUpdatePolicy)

TEMPORARY_UNBINDING

public static final DeviceBindingState TEMPORARY_UNBINDING
Indicates that the device is currently unbinding. This is the last state in the automatic update process.

All temporary states are used to indicate the progress of the automatic update process of unbound devices.

This is a temporary binding state that indicates that the device is not avalable for any interaction at this time.

See Also:
SDK.setUnboundAutoUpdatePolicy( com.biocomfort.SDK.AutoUpdatePolicy)
Method Detail

values

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

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

valueOf

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

getValue

public int getValue()
Returns an integer value that represents the medical device's binding state.

Returns:
integer value of the binding state