|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.biocomfort.TO.DeviceStatusTO
public class DeviceStatusTO
The DeviceStatusTO
is a data class to store the device status
information of a medical device. It is part of the class
MedicalDeviceTO
but initially not instantiated. To store device
status information for a medical device create a new instance of this class
and assign it to the MedicalDeviceTO
object.
MedicalDeviceTO.setDeviceStatus(DeviceStatusTO)
,
MedicalDeviceTO.getDeviceStatus()
,
Serialized FormConstructor Summary | |
---|---|
DeviceStatusTO()
Constructs a DeviceStatusTO object with initializing it so
that no status bit is set. |
|
DeviceStatusTO(short[] status)
Constructs a DateTimeTO object with specifying the device
status by the given short array of length 2. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a deep clone of this DeviceStatusTO object. |
java.lang.String |
formatStatus()
Returns a string representation of the status bits represented by this device status data object. |
short[] |
getStatus()
Returns a raw short array of length 2 representing all status bits. |
boolean |
isBitSet_ST_CLR_MEMORY()
Returns true if the status bit ST_CLR_MEMORY is set. |
boolean |
isBitSet_ST_DEL_BINDING()
Returns true if the status bit ST_DEL_BINDING is set. |
boolean |
isBitSet_ST_LOW_BAT()
Returns true if the status bit ST_LOW_BAT is set. |
boolean |
isBitSet_ST_MEASURE_AVAIL()
Returns true if the status bit ST_MEASURE_AVAIL is set. |
boolean |
isBitSet_ST_MEASURE_ERR()
Returns true if the status bit ST_MEASURE_ERR is set. |
boolean |
isBitSet_ST_MEASURE_REM()
Returns true if the status bit ST_MEASURE_REM is set. |
boolean |
isBitSet_ST_MEASURE_REQ()
Returns true if the status bit ST_MEASURE_REQ is set. |
boolean |
isBitSet_ST_MED_DEVICE_OFF()
Returns true if the status bit ST_MED_DEVICE_OFF is set. |
boolean |
isBitSet_ST_MED_SLEEP()
Returns true if the status bit ST_MED_SLEEP is set. |
boolean |
isBitSet_ST_PAR_CHANGED()
Returns true if the status bit ST_PAR_CHANGED is set. |
boolean |
isBitSet_ST_RES_TRANS_FLAG()
Returns true if the status bit ST_RES_TRANS_FLAG is set. |
boolean |
isBitSet_ST_RF_ONLINE()
Returns true if the status bit ST_RF_ONLINE is set. |
boolean |
isBitSet_ST_SPI_COMM()
Returns true if the status bit ST_SPI_COMM is set. |
boolean |
isBitSet_ST_TRX_ON()
Returns true if the status bit ST_TRX_ON is set. |
void |
setStatus(short[] value)
Sets all device status bits specified by the given short array. |
java.lang.String |
toString()
Converts this DeviceStatusTO object to a String
of the form:
DeviceStatusTO (status: <comma separated list of set bits>)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeviceStatusTO()
DeviceStatusTO
object with initializing it so
that no status bit is set.
public DeviceStatusTO(short[] status)
DateTimeTO
object with specifying the device
status by the given short array of length 2.
status
- short array of length 2 representing the device statusMethod Detail |
---|
public short[] getStatus()
DeviceStatusTO.isBitSet_...()
instead to read a single bits.
public void setStatus(short[] value)
value
- short array of length 2 representing the device statuspublic boolean isBitSet_ST_MEASURE_REQ()
true
if the status bit ST_MEASURE_REQ is set.
true
if the status bit is set.public boolean isBitSet_ST_MEASURE_ERR()
true
if the status bit ST_MEASURE_ERR is set.
true
if the status bit is set.public boolean isBitSet_ST_MEASURE_AVAIL()
true
if the status bit ST_MEASURE_AVAIL is set.
true
if the status bit is set.public boolean isBitSet_ST_LOW_BAT()
true
if the status bit ST_LOW_BAT is set.
true
if the status bit is set.public boolean isBitSet_ST_DEL_BINDING()
true
if the status bit ST_DEL_BINDING is set.
true
if the status bit is set.public boolean isBitSet_ST_MED_DEVICE_OFF()
true
if the status bit ST_MED_DEVICE_OFF is set.
true
if the status bit is set.public boolean isBitSet_ST_CLR_MEMORY()
true
if the status bit ST_CLR_MEMORY is set.
true
if the status bit is set.public boolean isBitSet_ST_PAR_CHANGED()
true
if the status bit ST_PAR_CHANGED is set.
true
if the status bit is set.public boolean isBitSet_ST_RF_ONLINE()
true
if the status bit ST_RF_ONLINE is set.
true
if the status bit is set.public boolean isBitSet_ST_TRX_ON()
true
if the status bit ST_TRX_ON is set.
true
if the status bit is set.public boolean isBitSet_ST_MED_SLEEP()
true
if the status bit ST_MED_SLEEP is set.
true
if the status bit is set.public boolean isBitSet_ST_RES_TRANS_FLAG()
true
if the status bit ST_RES_TRANS_FLAG is set.
true
if the status bit is set.public boolean isBitSet_ST_MEASURE_REM()
true
if the status bit ST_MEASURE_REM is set.
true
if the status bit is set.public boolean isBitSet_ST_SPI_COMM()
true
if the status bit ST_SPI_COMM is set.
true
if the status bit is set.public java.lang.String formatStatus()
public java.lang.String toString()
DeviceStatusTO
object to a String
of the form:
DeviceStatusTO (status: <comma separated list of set bits>)
toString
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
DeviceStatusTO
object.
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |