|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.biocomfort.TO.user_parameters.ScaleUserTO
public class ScaleUserTO
The class ScaleUserTO
is a data class to store the user
information for a body diagnostic scale. It is part of the class
ScaleUserParametersTO
but initially not instantiated in case
of using the standard constructor. To store user information for a
ScaleUserParametersTO
object create a new instance of this
class and assign it to the ScaleUserParametersTO
object.
ScaleUserParametersTO
Field Summary | |
---|---|
static int |
PHYSICAL_ACTIVITY_LEVEL_1
Ease-of-use constant to describe the physical activity of a user. |
static int |
PHYSICAL_ACTIVITY_LEVEL_2
Ease-of-use constant to describe the physical activity of a user. |
static int |
PHYSICAL_ACTIVITY_LEVEL_3
Ease-of-use constant to describe the physical activity of a user. |
static int |
PHYSICAL_ACTIVITY_UNKNOWN
Ease-of-use constant to describe the physical activity of a user. |
Constructor Summary | |
---|---|
ScaleUserTO()
Constructs a ScaleUserTO object with initializing it so
that the gender is set to female, the date of birth is set to the
standard base time (namely January 1, 1970, 00:00:00 GMT), the height
is set to 180.0 cm, and the physical activity is set to
ScaleUserTO.PHYSICAL_ACTIVITY_UNKNOWN. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a deep clone of this ScaleUserTO object. |
int |
getAge()
Returns a number that represents the user's current age calculated for the default time zone and local. |
java.util.Date |
getDateOfBirth()
Returns a Date object that represents the date of birth of a user. |
double |
getHeightInCentimeter()
Returns the user's height. |
int |
getPhysicalActivity()
Returns a numeric value that represents the user's physical activity. |
boolean |
isFemale()
Returns true if the gender of this user is female. |
void |
setDateOfBirth(java.util.Date dateOfBirth)
Sets the Date object that represents the date of birth of a user. |
void |
setFemale(boolean female)
Sets the user's gender. |
void |
setHeightInCentimeter(double height)
Sets the user's height. |
void |
setPhysicalActivity(int physicalActivity)
Sets the user's physical activity described by a numeric value. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PHYSICAL_ACTIVITY_UNKNOWN
setPhysicalActivity(int)
,
getPhysicalActivity()
,
Constant Field Valuespublic static final int PHYSICAL_ACTIVITY_LEVEL_1
setPhysicalActivity(int)
,
getPhysicalActivity()
,
Constant Field Valuespublic static final int PHYSICAL_ACTIVITY_LEVEL_2
setPhysicalActivity(int)
,
getPhysicalActivity()
,
Constant Field Valuespublic static final int PHYSICAL_ACTIVITY_LEVEL_3
setPhysicalActivity(int)
,
getPhysicalActivity()
,
Constant Field ValuesConstructor Detail |
---|
public ScaleUserTO()
ScaleUserTO
object with initializing it so
that the gender is set to female, the date of birth is set to the
standard base time (namely January 1, 1970, 00:00:00 GMT), the height
is set to 180.0 cm, and the physical activity is set to
ScaleUserTO.PHYSICAL_ACTIVITY_UNKNOWN.
Method Detail |
---|
public java.util.Date getDateOfBirth()
public void setDateOfBirth(java.util.Date dateOfBirth)
dateOfBirth
- the new user's date of birthpublic int getAge()
public boolean isFemale()
public void setFemale(boolean female)
female
- true to sets the user's gender to femalepublic double getHeightInCentimeter()
public void setHeightInCentimeter(double height)
height
- the new user's height (in cm)public int getPhysicalActivity()
PHYSICAL_ACTIVITY_UNKNOWN
,
PHYSICAL_ACTIVITY_LEVEL_1
,
PHYSICAL_ACTIVITY_LEVEL_2
,
PHYSICAL_ACTIVITY_LEVEL_3
public void setPhysicalActivity(int physicalActivity)
physicalActivity
- the new user's physical activityPHYSICAL_ACTIVITY_UNKNOWN
,
PHYSICAL_ACTIVITY_LEVEL_1
,
PHYSICAL_ACTIVITY_LEVEL_2
,
PHYSICAL_ACTIVITY_LEVEL_3
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
ScaleUserTO
object.
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |