com.biocomfort.TO.data
Class BloodGlucoseTO

java.lang.Object
  extended by com.biocomfort.TO.data.DataTO
      extended by com.biocomfort.TO.data.BloodGlucoseTO
All Implemented Interfaces:
TO

public class BloodGlucoseTO
extends DataTO

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.

See Also:
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

BloodGlucoseTO

public BloodGlucoseTO()
Constructs a BloodGlucoseTO object with initializing it so that the glucose value is set to 0 mg/dl.

Method Detail

getGlucose

public int getGlucose()
Returns the glucose value contained in the measurement represented by this BloodGlucoseTO object. The unit of this value is mg/dl.

Returns:
the measurement's glucose value (in mg/dl)

setGlucose

public void setGlucose(int glucose)
Sets the glucose value contained in the measurement represented by this BloodGlucoseTO object. The unit of this value is mg/dl.

Parameters:
glucose - the new measurement's glucose value (in mg/dl)

toString

public 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).
 
where:
See also java.util.Date.toString() for more details.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this measurement data object
See Also:
Date.toString()