|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.biocomfort.TO.FirmwareTO
public class FirmwareTO
The FirmwareTO is a data class to store the firmware
information of a medical device. It is part of the class
MedicalDeviceTO but initially not instantiated. To store firmware
information for a medical device create a new instance of this class
and assign it to the MedicalDeviceTO object.
MedicalDeviceTO.setFirmware(FirmwareTO),
MedicalDeviceTO.getFirmware(),
Serialized Form| Constructor Summary | |
|---|---|
FirmwareTO()
Constructs a FirmwareTO object with initializing it so
that the device type, the mask revision and the firmware revision are
0 and that the firmware date and time represents the time at which it
was allocated. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a deep clone of this FirmwareTO object. |
java.lang.String |
formatFirmware()
Converts this FirmwareTO object to a String
of the form. |
int |
getDeviceType()
Returns the device type of the medical device to whose
MedicalDeviceTO object this firmware data object is assign to. |
int |
getFirmware()
Returns the firmware revision number of the medical device to whose MedicalDeviceTO object this firmware data object is assign
to. |
java.util.Date |
getFirmwareDateTime()
Returns the firmware's build date and time of the medical device to whose MedicalDeviceTO object this firmware data object
is assign to. |
int |
getFirmwareDay()
Returns the day of the month of the firmware's build date. |
int |
getFirmwareHourOfDay()
Returns the hour of day of the firmware's build time. |
int |
getFirmwareMinute()
Returns the number of minutes past the hour of the firmware's build time, as interpreted in the local time zone. |
int |
getFirmwareMonth()
Returns a number representing the month that contains or begins with the instant in time of the firmware's build date, as interpreted for the default time zone and local. |
int |
getFirmwareYear()
Returns a number representing the year that contains or begins with the instant in time of the firmware's build date, as interpreted for the default time zone and local. |
int |
getMaskRev()
Returns the mask revision number (0 = flash type, 1 = first time masked) of the medical device to whose MedicalDeviceTO
object this firmware data object is assign to. |
void |
setDeviceType(int devType)
Sets the device type of the medical device to whose
MedicalDeviceTO object this firmware data object is assign to. |
void |
setFirmware(int firmware)
Sets the firmware revision number of the medical device to whose MedicalDeviceTO object this firmware data object is assign
to. |
void |
setFirmwareDateTime(java.util.Date firmwareDate)
Sets the firmware's build date and time of the medical device to whose MedicalDeviceTO object this firmware data object
is assign to. |
void |
setFirmwareDateTime(int year,
int month,
int day,
int hourOfDay,
int minute)
Sets the firmware's build date and time so that it represents the instant at the start of the minute specified by the year, month, day, hourOfDay, and minute arguments, for the default time zone and local. |
void |
setMaskRev(int maskRev)
Sets the mask revision number (0 = flash type, 1 = first time masked) of the medical device to whose MedicalDeviceTO
object this firmware data object is assign to. |
java.lang.String |
toString()
Converts this FirmwareTO object to a String
of the form. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FirmwareTO()
FirmwareTO object with initializing it so
that the device type, the mask revision and the firmware revision are
0 and that the firmware date and time represents the time at which it
was allocated.
| Method Detail |
|---|
public int getDeviceType()
MedicalDeviceTO object this firmware data object is assign to.
SerialNumberTO data object is assigned to the
MedicalDeviceTO object the method
SerialNumberTO.getDeviceType() should return the same
device type.
SerialNumberTO.getDeviceType(),
SDK.DEVICE_TYPE_BLOOD_PRESSURE,
SDK.DEVICE_TYPE_BLOOD_GLUCOSE,
SDK.DEVICE_TYPE_SCALEpublic void setDeviceType(int devType)
MedicalDeviceTO object this firmware data object is assign to.
SerialNumberTO data object is assigned to the
MedicalDeviceTO object the method
SerialNumberTO.getDeviceType() should return the same
device type.
devType - the new medical device's typeSerialNumberTO.getDeviceType(),
SDK.DEVICE_TYPE_BLOOD_PRESSURE,
SDK.DEVICE_TYPE_BLOOD_GLUCOSE,
SDK.DEVICE_TYPE_SCALEpublic int getMaskRev()
MedicalDeviceTO
object this firmware data object is assign to.
public void setMaskRev(int maskRev)
MedicalDeviceTO
object this firmware data object is assign to.
maskRev - the new medical device's mask revision numberpublic int getFirmware()
MedicalDeviceTO object this firmware data object is assign
to.
public void setFirmware(int firmware)
MedicalDeviceTO object this firmware data object is assign
to.
firmware - the new medical device's firmware revision numberpublic java.util.Date getFirmwareDateTime()
MedicalDeviceTO object this firmware data object
is assign to.
public void setFirmwareDateTime(java.util.Date firmwareDate)
MedicalDeviceTO object this firmware data object
is assign to.
firmwareDate - the new medical device's firmware build date
public void setFirmwareDateTime(int year,
int month,
int day,
int hourOfDay,
int minute)
year - the yearmonth - the month between 1-12day - the day of month between 1-31hourOfDay - the hour of a day between 0-23minute - the minutes between 0-59public int getFirmwareYear()
public int getFirmwareMonth()
public int getFirmwareDay()
public int getFirmwareHourOfDay()
public int getFirmwareMinute()
public java.lang.String toString()
FirmwareTO object to a String
of the form.
SeeFirmwareTO (devType:<devType>,maskRev:<maskRev>,firmware:<firmware>,firmwareDate:dow mon dd hh:mm:ss zzz yyyy)
java.util.Date.toString() for more details.
toString in class java.lang.ObjectDate.toString()public java.lang.String formatFirmware()
FirmwareTO object to a String
of the form.
<devType in hex format> <maskRev in hex format> <firmware in hex format> dd/MM/yyyy HH:mm:ss
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
FirmwareTO object.
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||