uk.ac.leeds.ccg.andyt.projects.genesis.society.demography
Class GENESIS_Age
java.lang.Object
uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Age
uk.ac.leeds.ccg.andyt.projects.genesis.society.demography.GENESIS_Age
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public class GENESIS_Age
- extends uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Age
- implements java.lang.Comparable, java.io.Serializable
- See Also:
- Serialized Form
Field Summary |
protected uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Time |
initialised_Time
|
Fields inherited from class uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Age |
ageInYears, ageInYearsCalculationTime, dateOfBirth, dateOfBirthEstimated, dayOfMonthOfBirth, monthOfYearOfBirth, timeOfBirth, timeOfBirthAgeBound |
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Age |
getAgeInYearsCalculationTime, getDateOfBirth, getDayOfMonthOfBirth, getMonthOfYearOfBirth, getTimeOfBirth, getTimeOfBirthAgeBound, isDateOfBirthEstimated, setAgeInYears, setAgeInYearsCalculationTime, setDateOfBirth, setDateOfBirthEstimated, setDayOfMonthOfBirth, setMonthOfYearOfBirth, setTimeOfBirth, setTimeOfBirthAgeBound |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
initialised_Time
protected uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Time initialised_Time
GENESIS_Age
public GENESIS_Age()
GENESIS_Age
public GENESIS_Age(GENESIS_Age aGENESIS_Age,
GENESIS_Environment aGENESIS_Environment)
GENESIS_Age
public GENESIS_Age(GENESIS_Age aGENESIS_Age)
GENESIS_Age
public GENESIS_Age(uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Age age)
GENESIS_Age
public GENESIS_Age(GENESIS_Environment a_GENESIS_Environment,
uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Time timeOfBirth)
GENESIS_Age
public GENESIS_Age(GENESIS_Environment a_GENESIS_Environment,
uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Time timeOfBirth,
uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Time timeOfBirthMin,
uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Time timeOfBirthMax)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getAgeInYears
public long getAgeInYears(GENESIS_Time a_Time)
getAgeInYears
public java.lang.Long getAgeInYears()
- Overrides:
getAgeInYears
in class uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Age
getAge_double
public double getAge_double(GENESIS_Time a_Time)
- Returns the Persons Age as a double.
- Returns:
- measure of age (difference between
getTimeOfBirth()
and a_Time) as a double
getAgeInDays
public long getAgeInDays(GENESIS_Time a_Time)
- Returns:
- the Age in days as a long at time a_time. This assumes every year
has GENESIS_Time.NormalDaysInYear_int days.
getAgeInYears_long
public long getAgeInYears_long(GENESIS_Time a_Time)
getAge_Time
public uk.ac.leeds.ccg.andyt.projects.genesis.io.schema.common.Time getAge_Time(GENESIS_Time a_Time)
- Returns:
- measure of age at a_Time
getAge_double
public double getAge_double()
- Returns the Persons Age as a double.
- Returns:
- measure of age (difference between
_anchorTime
and
_GENESIS_Environment._Time) as a double
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
equals
public boolean equals(java.lang.Object o)
- Overrides equals in Object
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object