|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.biocomfort.TO.data.DataTO
com.biocomfort.TO.data.WeightTO
public class WeightTO
Represents the measurement data of a body diagnostic scale.
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 WeightTO in case that the medical device
that sends the measurement is a body diagnostic scale.
SDKDataListener.onDataReceived(com.biocomfort.TO.MedicalDeviceTO, TO)| Constructor Summary | |
|---|---|
WeightTO()
Constructs a WeightTO object with initializing it so that
the weight value is set to 0 kg, the impedance value to 0 Ω, the
body fat value to 0 %, the body water value to 0 %, and the muscle
mass value is set to 0 %. |
|
| Method Summary | |
|---|---|
double |
getBodyFat()
Returns the body fat value contained in the measurement represented by this WeightTO object. |
double |
getBodyWater()
Returns the body water value contained in the measurement represented by this WeightTO object. |
double |
getImpedance()
Returns the impedance value contained in the measurement represented by this WeightTO object. |
double |
getMuscleMass()
Returns the muscle mass value contained in the measurement represented by this WeightTO object. |
double |
getWeight()
Returns the weight value contained in the measurement represented by this WeightTO object. |
void |
setBodyFat(double bodyFat)
Sets the body fat value contained in the measurement represented by this WeightTO object. |
void |
setBodyWater(double bodyWater)
Sets the body water value contained in the measurement represented by this WeightTO object. |
void |
setImpedance(double impedance)
Sets the impedance value contained in the measurement represented by this WeightTO object. |
void |
setMuscleMass(double muscleMass)
Sets the muscle mass value contained in the measurement represented by this WeightTO object. |
void |
setWeight(double weight)
Set the weight value contained in the measurement represented by this WeightTO object. |
java.lang.String |
toString()
Converts this WeightTO object to a String
of the form:
WeightTO (dateTime:dow mon dd hh:mm:ss zzz yyyy,transmittedDataSet:t,user:u,weight:w,impedance:i,bodyFat:bf,bodyWater:bm,muscleMass:mm). |
| 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 WeightTO()
WeightTO object with initializing it so that
the weight value is set to 0 kg, the impedance value to 0 Ω, the
body fat value to 0 %, the body water value to 0 %, and the muscle
mass value is set to 0 %.
| Method Detail |
|---|
public double getWeight()
WeightTO object. The unit of this value is kg.
public void setWeight(double weight)
WeightTO object. The unit of this value is kg.
weight - the new measurement's weight value (in kg)public double getImpedance()
WeightTO object. The unit of this value is
Ω.
public void setImpedance(double impedance)
WeightTO object. The unit of this value is
Ω.
impedance - the new measurement's impedance value (in Ω)public double getBodyFat()
WeightTO object. The unit of this value is %.
public void setBodyFat(double bodyFat)
WeightTO object. The unit of this value is %.
bodyFat - the new measurement's body fat value (in %)public double getBodyWater()
WeightTO object. The unit of this value is %.
public void setBodyWater(double bodyWater)
WeightTO object. The unit of this value is %.
bodyWater - the new measurement's body water value (in %)public double getMuscleMass()
WeightTO object. The unit of this value is %.
public void setMuscleMass(double muscleMass)
WeightTO object. The unit of this value is %.
muscleMass - the new measurement's muscle mass value (in %)public java.lang.String toString()
WeightTO object to a String
of the form:
where:WeightTO (dateTime:dow mon dd hh:mm:ss zzz yyyy,transmittedDataSet:t,user:u,weight:w,impedance:i,bodyFat:bf,bodyWater:bm,muscleMass:mm).
true, 'false' otherwise.java.util.Date.toString() for more details.
toString in class java.lang.ObjectDate.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||