com.biocomfort.TO.data
Class BloodPressureTO

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

public class BloodPressureTO
extends DataTO

Represents the measurement data of a blood pressure 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 BloodPressureTO in case that the medical device that sends the measurement is a blood pressure monitor.

See Also:
SDKDataListener.onDataReceived(com.biocomfort.TO.MedicalDeviceTO, TO)

Constructor Summary
BloodPressureTO()
          Constructs a BloodPressureTO object with initializing it so that the systolic blood pressure is set to 0 mmHG, the diastolic blood pressure is set to 0 mmHG and the pulse are set to 0 1/min.
 
Method Summary
 int getDiastolic()
          Returns the value of the diastolic blood pressure contained in the measurement represented by this BloodPressureTO object.
 int getPulse()
          Returns the value of the pulse contained in the measurement represented by this BloodPressureTO object.
 int getSystolic()
          Returns the value of the systolic blood pressure contained in the measurement represented by this BloodPressureTO object.
 void setDiastolic(int diastolic)
          Sets the value of the diastolic blood pressure contained in the measurement represented by this BloodPressureTO object.
 void setPulse(int pulse)
          Sets the value of the pulse contained in the measurement represented by this BloodPressureTO object.
 void setSystolic(int systolic)
          Sets the value of the systolic blood pressure contained in the measurement represented by this BloodPressureTO object.
 java.lang.String toString()
          Converts this BloodPressureTO object to a String of the form: BloodPressureTO (dateTime:dow mon dd hh:mm:ss zzz yyyy,transmittedDataSet:t,user:u,systolic:sys,diastolic:dias,pulse:p).
 
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

BloodPressureTO

public BloodPressureTO()
Constructs a BloodPressureTO object with initializing it so that the systolic blood pressure is set to 0 mmHG, the diastolic blood pressure is set to 0 mmHG and the pulse are set to 0 1/min.

Method Detail

getSystolic

public int getSystolic()
Returns the value of the systolic blood pressure contained in the measurement represented by this BloodPressureTO object. The unit of this value is mmHG.

Returns:
the measurement's systolic blood pressure value (in mmHG)

setSystolic

public void setSystolic(int systolic)
Sets the value of the systolic blood pressure contained in the measurement represented by this BloodPressureTO object. The unit of this value is mmHG.

Parameters:
systolic - the new measurement's systolic blood pressure value (in mmHG)

getDiastolic

public int getDiastolic()
Returns the value of the diastolic blood pressure contained in the measurement represented by this BloodPressureTO object. The unit of this value is mmHG.

Returns:
the measurement's diastolic blood pressure value (in mmHG)

setDiastolic

public void setDiastolic(int diastolic)
Sets the value of the diastolic blood pressure contained in the measurement represented by this BloodPressureTO object. The unit of this value is mmHG.

Parameters:
diastolic - the new measurement's diastolic blood pressure value (in mmHG)

getPulse

public int getPulse()
Returns the value of the pulse contained in the measurement represented by this BloodPressureTO object. The unit of this value is 1/min.

Returns:
the measurement's pulse value (in 1/min)

setPulse

public void setPulse(int pulse)
Sets the value of the pulse contained in the measurement represented by this BloodPressureTO object. The unit of this value is 1/min.

Parameters:
pulse - the new measurement's pulse value (in 1/min)

toString

public java.lang.String toString()
Converts this BloodPressureTO object to a String of the form:
 BloodPressureTO (dateTime:dow mon dd hh:mm:ss zzz yyyy,transmittedDataSet:t,user:u,systolic:sys,diastolic:dias,pulse:p).
 
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()