|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.biocomfort.TO.data.DataTO com.biocomfort.TO.data.BloodGlucoseTO
public class BloodGlucoseTO
Represents the measurement data of a blood glucose monitor.
Each time a measurement of a medical device is received by the SDK an
onDataReceived
event of the SDKDataListener
is
fired. The parameter data
of this event method transfers an
instance of a BloodGlucoseTO
in case that the medical device
that sends the measurement is a blood glucose monitor.
SDKDataListener.onDataReceived(com.biocomfort.TO.MedicalDeviceTO, TO)
Constructor Summary | |
---|---|
BloodGlucoseTO()
Constructs a BloodGlucoseTO object with initializing it
so that the glucose value is set to 0 mg/dl. |
Method Summary | |
---|---|
int |
getGlucose()
Returns the glucose value contained in the measurement represented by this BloodGlucoseTO object. |
void |
setGlucose(int glucose)
Sets the glucose value contained in the measurement represented by this BloodGlucoseTO object. |
java.lang.String |
toString()
Converts this BloodGlucoseTO object to a
String of the form:
BloodPressureTO (dateTime:dow mon dd hh:mm:ss zzz yyyy,transmittedDataSet:t,user:u,glucose:g). |
Methods inherited from class com.biocomfort.TO.data.DataTO |
---|
getDateTime, getDay, getHourOfDay, getMinute, getMonth, getSecond, getUser, getYear, isTransmittedDataSet, setDateTime, setDateTime, setTransmittedDataSet, setUser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BloodGlucoseTO()
BloodGlucoseTO
object with initializing it
so that the glucose value is set to 0 mg/dl.
Method Detail |
---|
public int getGlucose()
BloodGlucoseTO
object. The unit of this value is
mg/dl.
public void setGlucose(int glucose)
BloodGlucoseTO
object. The unit of this value is
mg/dl.
glucose
- the new measurement's glucose value (in mg/dl)public java.lang.String toString()
BloodGlucoseTO
object to a
String
of the form:
where:BloodPressureTO (dateTime:dow mon dd hh:mm:ss zzz yyyy,transmittedDataSet:t,user:u,glucose:g).
true
, 'false' otherwise.java.util.Date.toString()
for more details.
toString
in class java.lang.Object
Date.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |