|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.biocomfort.TO.MedicalDeviceTO
public class MedicalDeviceTO
Represents a medical device with its address, its states and its
information. This class is used in the SDK to pass or to receive
information about a specific medical device.
Initially each object of this class only reserves memory to store the
address and the states of a medical device. Therefore it can also be used
if only the address of this device should be stored or passed. To associate
additional information to a MedicalDeviceTO
object the
specific data objects have to be created and set to the object.
Constructor Summary | |
---|---|
MedicalDeviceTO()
Create a MedicalDeviceTO instance with the initial
device id '000.000'. |
|
MedicalDeviceTO(short[] deviceId)
Create a MedicalDeviceTO instance with the given device
id. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a deep clone of this instance of MedicalDeviceTO . |
boolean |
equalsDeviceId(MedicalDeviceTO otherDevice)
Returns true if the device id of the given medical device
is equals the device id of this MedicalDeviceTO instance. |
java.lang.Object |
getAddressKey()
Returns a key object that is equals with another key object if and only if these two medical devices has the same address. |
DeviceBindingState |
getBindingState()
Returns the current binding state of this medical device. |
int |
getBindingStateIntValue()
This function is used for serialization issues. |
DateTimeTO |
getDateTime()
Returns a data object that represents the date time of the medical device. |
short[] |
getDeviceId()
Returns the device id of this medical device as a short array of the length 2. |
DeviceStatusTO |
getDeviceStatus()
Returns a data object that represents status information of the medical device. |
FirmwareTO |
getFirmware()
Returns a data object that represents firmware information of the medical device. |
IeeeAddressTO |
getIeeeAddress()
Returns a data object that represents the IEEE MAC-address of the medical device. |
DeviceOnlineState |
getOnlineState()
Returns the current online state of this medical device. |
SerialNumberTO |
getSerialNumber()
Returns a data object that represents the serial number of the medical device. |
DeviceSpeedState |
getSpeedState()
Returns the current speed state of this medical device. |
UserSettingTO |
getUserSetting()
Returns a data object that represents user setting information of the medical device. |
void |
setBindingState(DeviceBindingState bindingState)
Sets the binding state. |
void |
setBindingStateIntValue(int value)
This function is used for serialization issues. |
void |
setDateTime(DateTimeTO dateTime)
Set the data object that represents the date time of the medical device. |
void |
setDeviceId(int deviceId0,
int deviceId1)
Sets the device id of this medical device. |
void |
setDeviceId(short[] deviceId)
Sets the device id of this medical device. |
void |
setDeviceStatus(DeviceStatusTO deviceStatus)
Sets the data object that represents status information of the medical device. |
void |
setFirmware(FirmwareTO firmware)
Sets the data object that represents firmware information of the medical device. |
void |
setIeeeAddress(IeeeAddressTO ieeeAddress)
Sets the data object that represents the IEEE MAC-address of the medical device. |
void |
setOnlineState(DeviceOnlineState onlineState)
Sets the online state of the medical device. |
void |
setSerialNumber(SerialNumberTO serialNumber)
Set the data object that represents the serial number of the medical device. |
void |
setSpeedState(DeviceSpeedState speedState)
Sets the speed state of the medical device. |
void |
setUserSetting(UserSettingTO userSetting)
Sets the data object that represents user setting information of the medical device. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MedicalDeviceTO()
MedicalDeviceTO
instance with the initial
device id '000.000'. The binding state and speed state are
UNDEFINED
and the online state is OFFLINE
.
public MedicalDeviceTO(short[] deviceId)
MedicalDeviceTO
instance with the given device
id. The binding state and speed state are
UNDEFINED
and the online state is OFFLINE
.
deviceId
- the device id. Must be a short array of the length 2.Method Detail |
---|
public short[] getDeviceId()
public void setDeviceId(short[] deviceId)
deviceId
- the device id. Must be a short array of the length 2.public void setDeviceId(int deviceId0, int deviceId1)
deviceId0
- the device id's first bytedeviceId1
- the device id's second bytepublic DeviceBindingState getBindingState()
DeviceBindingState.BOUND
.
To bind a medical device its binding state must be
DeviceBindingState.UNBOUND
.
public void setBindingState(DeviceBindingState bindingState)
DeviceBindingState.BOUND
.
To bind a medical device its binding state must be
DeviceBindingState.UNBOUND
.
bindingState
- the new medical device's binding statepublic DeviceSpeedState getSpeedState()
public void setSpeedState(DeviceSpeedState speedState)
speedState
- the new medical device's speed statepublic DeviceOnlineState getOnlineState()
public void setOnlineState(DeviceOnlineState onlineState)
onlineState
- the new medical device's online state.public DateTimeTO getDateTime()
public void setDateTime(DateTimeTO dateTime)
dateTime
- the medical device's date timepublic SerialNumberTO getSerialNumber()
public void setSerialNumber(SerialNumberTO serialNumber)
serialNumber
- the medical device's serial numberpublic FirmwareTO getFirmware()
public void setFirmware(FirmwareTO firmware)
firmware
- the medical device's firmware informationpublic UserSettingTO getUserSetting()
public void setUserSetting(UserSettingTO userSetting)
userSetting
- the medical device's user setting informationpublic IeeeAddressTO getIeeeAddress()
public void setIeeeAddress(IeeeAddressTO ieeeAddress)
ieeeAddress
- the medical device's IEEE MAC-addresspublic DeviceStatusTO getDeviceStatus()
public void setDeviceStatus(DeviceStatusTO deviceStatus)
deviceStatus
- the medical device's status informationpublic void setBindingStateIntValue(int value)
value
- public int getBindingStateIntValue()
public boolean equalsDeviceId(MedicalDeviceTO otherDevice)
true
if the device id of the given medical device
is equals the device id of this MedicalDeviceTO
instance.
otherDevice
- the medical device description that device id
should be tested
true
if the given medical device's id is equals
the device id of this medical device, otherwise false
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
MedicalDeviceTO
.
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if a nested object could not be
clonedpublic java.lang.Object getAddressKey()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |