|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.biocomfort.TO.SerialNumberTO
public class SerialNumberTO
The SerialNumberTO
is a data class to store the serial number
information of a medical device. It is part of the class
MedicalDeviceTO
but initially not instantiated. To store the
serial number for a medical device create a new instance of this class
and assign it to the MedicalDeviceTO
object.
MedicalDeviceTO.setSerialNumber(SerialNumberTO)
,
MedicalDeviceTO.getSerialNumber()
,
Serialized FormConstructor Summary | |
---|---|
SerialNumberTO()
Constructs a SerialNumberTO object with initializing it so
that the device type is 0, the serial number is '00 00', the item
number is '00 00 00', the production week is 0 and the production year
is 2000. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a deep clone of this SerialNumberTO object. |
java.lang.String |
formatSerialNumber()
Converts this SerialNumberTO object to a
String of the form:
iiiiii dd yyww ssss. |
int |
getDeviceType()
Returns the device type of the medical device to whose
MedicalDeviceTO object this serial number data object is assign
to. |
short[] |
getItemNumber()
Returns a short array of length 3 representing the item number of the medical device to whose MedicalDeviceTO object this
serial number data object is assign to. |
int |
getProductionWeek()
Returns the production week of the medical device to whose MedicalDeviceTO object this serial number data object
is assign to. |
int |
getProductionYear()
Returns the production year of the medical device to whose MedicalDeviceTO object this serial number data object
is assign to. |
short[] |
getSerialNumber()
Returns a short array of length 2 representing the serial number of the medical device to whose MedicalDeviceTO object this
serial number data object is assign to. |
void |
setDeviceType(int value)
Sets the device type of the medical device to whose
MedicalDeviceTO object this serial number data object is
assign to. |
void |
setItemNumber(short[] value)
Sets the item number specified by the given short array. |
void |
setProductionWeek(int value)
Sets the production week of the medical device to whose MedicalDeviceTO object this serial number data object
is assign to. |
void |
setProductionYear(int value)
Sets the production year of the medical device to whose MedicalDeviceTO object this serial number data object
is assign to. |
void |
setSerialNumber(short[] value)
Sets the serial number specified by the given short array. |
void |
setSerialNumberInformation(short[] itemNumber,
int deviceType,
int productionWeek,
int productionYear,
short[] serialNumber)
Sets the serial number information specified by the given itemNumber, deviceType, productionWeek, productionYear and serialNumber arguments. |
java.lang.String |
toString()
Converts this SerialNumberTO object to a
String of the form:
SerialNumberTO (serialNumber:ss ss,productionWeek:w,productionYear:y,deviceType:d,itemNumber:ii ii ii). |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SerialNumberTO()
SerialNumberTO
object with initializing it so
that the device type is 0, the serial number is '00 00', the item
number is '00 00 00', the production week is 0 and the production year
is 2000.
Method Detail |
---|
public void setSerialNumberInformation(short[] itemNumber, int deviceType, int productionWeek, int productionYear, short[] serialNumber)
FirmwareTO
data object is assigned to the
MedicalDeviceTO
object the method
FirmwareTO.getDeviceType()
should return the same
device type.
itemNumber
- short array of length 3 representing the new item
numberdeviceType
- the new medical device's typeproductionWeek
- the new medical device's production weekproductionYear
- the new medical device's production yearserialNumber
- short array of length 2 representing the new serial
numberFirmwareTO.getDeviceType()
,
SDK.DEVICE_TYPE_BLOOD_PRESSURE
,
SDK.DEVICE_TYPE_BLOOD_GLUCOSE
,
SDK.DEVICE_TYPE_SCALE
public short[] getSerialNumber()
MedicalDeviceTO
object this
serial number data object is assign to.
public void setSerialNumber(short[] value)
value
- short array of length 2 representing the new serial
numberpublic int getProductionWeek()
MedicalDeviceTO
object this serial number data object
is assign to.
public void setProductionWeek(int value)
MedicalDeviceTO
object this serial number data object
is assign to.
value
- the new production weekpublic int getProductionYear()
MedicalDeviceTO
object this serial number data object
is assign to.
public void setProductionYear(int value)
MedicalDeviceTO
object this serial number data object
is assign to.
value
- the new production yearpublic int getDeviceType()
MedicalDeviceTO
object this serial number data object is assign
to.FirmwareTO
data object is assigned to the
MedicalDeviceTO
object the method
FirmwareTO.getDeviceType()
should return the same
device type.
FirmwareTO.getDeviceType()
,
SDK.DEVICE_TYPE_BLOOD_PRESSURE
,
SDK.DEVICE_TYPE_BLOOD_GLUCOSE
,
SDK.DEVICE_TYPE_SCALE
public void setDeviceType(int value)
MedicalDeviceTO
object this serial number data object is
assign to.FirmwareTO
data object is assigned to the
MedicalDeviceTO
object the method
FirmwareTO.getDeviceType()
should return the same
device type.
value
- the new medical device's typeFirmwareTO.getDeviceType()
,
SDK.DEVICE_TYPE_BLOOD_PRESSURE
,
SDK.DEVICE_TYPE_BLOOD_GLUCOSE
,
SDK.DEVICE_TYPE_SCALE
public short[] getItemNumber()
MedicalDeviceTO
object this
serial number data object is assign to.
public void setItemNumber(short[] value)
value
- short array of length 3 representing the new item
numberpublic java.lang.String toString()
SerialNumberTO
object to a
String
of the form:
where:SerialNumberTO (serialNumber:ss ss,productionWeek:w,productionYear:y,deviceType:d,itemNumber:ii ii ii).
toString
in class java.lang.Object
public java.lang.String formatSerialNumber()
SerialNumberTO
object to a
String
of the form:
where:iiiiii dd yyww ssss.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
SerialNumberTO
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 |