com.biocomfort.TO.data
Class WeightTO

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

public class WeightTO
extends DataTO

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.

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

WeightTO

public 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 Detail

getWeight

public double getWeight()
Returns the weight value contained in the measurement represented by this WeightTO object. The unit of this value is kg.

Returns:
the measurement's weight value (in kg)

setWeight

public void setWeight(double weight)
Set the weight value contained in the measurement represented by this WeightTO object. The unit of this value is kg.

Parameters:
weight - the new measurement's weight value (in kg)

getImpedance

public double getImpedance()
Returns the impedance value contained in the measurement represented by this WeightTO object. The unit of this value is Ω.

Returns:
the measurement's impedance value (in Ω)

setImpedance

public void setImpedance(double impedance)
Sets the impedance value contained in the measurement represented by this WeightTO object. The unit of this value is Ω.

Parameters:
impedance - the new measurement's impedance value (in Ω)

getBodyFat

public double getBodyFat()
Returns the body fat value contained in the measurement represented by this WeightTO object. The unit of this value is %.

Returns:
the measurement's body fat value (in %)

setBodyFat

public void setBodyFat(double bodyFat)
Sets the body fat value contained in the measurement represented by this WeightTO object. The unit of this value is %.

Parameters:
bodyFat - the new measurement's body fat value (in %)

getBodyWater

public double getBodyWater()
Returns the body water value contained in the measurement represented by this WeightTO object. The unit of this value is %.

Returns:
the measurement's body water value (in %)

setBodyWater

public void setBodyWater(double bodyWater)
Sets the body water value contained in the measurement represented by this WeightTO object. The unit of this value is %.

Parameters:
bodyWater - the new measurement's body water value (in %)

getMuscleMass

public double getMuscleMass()
Returns the muscle mass value contained in the measurement represented by this WeightTO object. The unit of this value is %.

Returns:
the measurement's muscle mass value (in %)

setMuscleMass

public void setMuscleMass(double muscleMass)
Sets the muscle mass value contained in the measurement represented by this WeightTO object. The unit of this value is %.

Parameters:
muscleMass - the new measurement's muscle mass value (in %)

toString

public 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).
 
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()