|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.leeds.ccg.andyt.projects.genesis.core.GENESIS_Agent uk.ac.leeds.ccg.andyt.projects.genesis.core.GENESIS_Person
public abstract class GENESIS_Person
Class for representing individual people.
Field Summary | |
---|---|
protected GENESIS_Age |
_Age
A record of the time of birth of this person |
java.util.Calendar |
_Birth_Calendar
A record of the time of birth of this person |
uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D |
_Birth_Point2D
Provides the location at which this GENESIS_Person was born. |
protected java.lang.Long |
_Collection_ID
|
uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D |
_Death_Point2D
Provides the location at which this GENESIS_Person dies/died. |
GENESIS_Time |
_Death_Time
A record of the time of death of this person. |
protected java.io.File |
_Directory
Directory for storing information about this. |
Family |
_Family
Stores a reference to the Family of this GENESIS_Person |
uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D |
_Heading_Point2D
Stores the next network location where the person is heading. |
Household |
_Household
Stores the GENESIS_Person's household which is information about where and with who the GENESIS_Person resides. |
java.lang.Object |
_HouseholdHistory
|
protected java.lang.Long |
_ID
A unique numerical ID for this |
Movement |
_Movement
Stores current Movement of GENESIS_Person from an origin through all network locations to a destination. |
uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Network2D |
_Network2D
Stores the persons network along which they have headed. |
java.math.BigDecimal |
_personalFertility_BigDecimal
|
java.math.BigDecimal |
_personalMortality_BigDecimal
|
uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D |
_Point2D
Stores the location of the GENESIS_Person. |
protected uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D |
_Previous_Point2D
Stores a previous location. |
uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCell.CellID |
_reporting_CellID
For storing the _Environment._reportingGrid CellID |
uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Network2D |
_reporting_VectorNetwork2D
Stores the persons network along which they have headed. |
java.util.ArrayList<java.lang.String> |
_ResidentialSubregionIDs
|
double |
_resource_double
Stores a measure of how much resource a GENESIS_Person has |
double |
_resourceMax_double
|
GENESIS_Time |
_SetOffToWork_0_Time
GENESIS_Time set of for work previously. |
GENESIS_Time |
_SetOffToWork_Time
GENESIS_Time set of for work. |
java.math.BigDecimal |
_Speed_BigDecimal
Stores the _Speed at which a person is moving. |
double |
_Speed_double
|
java.math.BigDecimal |
_SpeedDefault_BigDecimal
Stores the _Speed at which a person moves by default if they are moving. |
double |
_SpeedDefault_double
|
uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D |
_Work_Point2D
Stores work location. |
GENESIS_Time[] |
_Work_Time
If a GENESIS_Person has just one period of work per day _Time_Work should have length == 2. |
Fields inherited from class uk.ac.leeds.ccg.andyt.projects.genesis.core.GENESIS_Agent |
---|
_GENESIS_AgentCollectionManager, _GENESIS_Environment, _Type |
Constructor Summary | |
---|---|
GENESIS_Person()
|
Method Summary | |
---|---|
GENESIS_Age |
get_Age()
|
protected abstract int |
get_Gender()
|
abstract int |
get_Gender(boolean handleOutOfMemoryError)
|
uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D |
get_Previous_Point2D()
return _Previous_Point2D; |
protected GENESIS_Time[] |
get_Work_Time()
|
GENESIS_Age |
getAge()
|
boolean |
getIsBirthday()
|
boolean |
getIsTimeToSetOfToWork()
|
protected boolean |
getIsWorkTime()
Default to false. |
uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Network2D.Connection |
getNextConnectionOnRoute()
Convenience method for getting a next connection on a route. |
java.lang.String |
getPreviousRegionID()
|
java.lang.String |
getPreviousSubregionID()
|
java.lang.String |
getRegionID()
|
java.lang.String |
getSubregionID()
|
static java.lang.String |
getTypeDeadFemale_String()
|
static java.lang.String |
getTypeDeadMale_String()
|
static java.lang.String |
getTypeLivingFemale_String()
|
static java.lang.String |
getTypeLivingMale_String()
|
void |
init(GENESIS_Person a_Person)
|
boolean |
isAlive(GENESIS_Time a_Time)
|
protected static void |
log(java.util.logging.Level level,
java.lang.String message)
|
protected static void |
log(java.lang.String message)
|
protected java.math.BigDecimal |
move()
|
java.math.BigDecimal |
move(java.math.BigDecimal distance_BigDecimal)
Attempts to move person a set distance and return it. |
void |
move(boolean handleOutOfMemoryError)
|
void |
set_Death_Time(GENESIS_Time _Time_Death)
|
void |
set_Heading_Point2D(java.math.BigDecimal distance0_BigDecimal)
Sets a_Person._Heading_Point2D using next connection on route. |
void |
set_Previous_Point2D(uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D a_Point2D)
this._Previous_Point2D = new Vector_Point2D(a_Point2D); |
void |
setMovement()
|
java.lang.String |
toString()
|
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.genesis.core.GENESIS_Agent |
---|
get_Agent_ID, get_AgentCollection, get_AgentCollectionManager, get_Directory, getType, setType, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.util.ArrayList<java.lang.String> _ResidentialSubregionIDs
protected java.lang.Long _ID
protected java.lang.Long _Collection_ID
protected java.io.File _Directory
public java.util.Calendar _Birth_Calendar
protected GENESIS_Age _Age
public GENESIS_Time _Death_Time
public uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D _Birth_Point2D
public uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D _Death_Point2D
public uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D _Point2D
protected uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D _Previous_Point2D
public uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCell.CellID _reporting_CellID
public uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D _Heading_Point2D
public Movement _Movement
public uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Network2D _Network2D
public uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Network2D _reporting_VectorNetwork2D
public Family _Family
public Household _Household
public uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D _Work_Point2D
public java.math.BigDecimal _Speed_BigDecimal
public double _Speed_double
public java.math.BigDecimal _SpeedDefault_BigDecimal
public double _SpeedDefault_double
public GENESIS_Time[] _Work_Time
public GENESIS_Time _SetOffToWork_Time
public GENESIS_Time _SetOffToWork_0_Time
public java.lang.Object _HouseholdHistory
public java.math.BigDecimal _personalFertility_BigDecimal
public java.math.BigDecimal _personalMortality_BigDecimal
public double _resource_double
public double _resourceMax_double
Constructor Detail |
---|
public GENESIS_Person()
Method Detail |
---|
public java.lang.String getRegionID()
public java.lang.String getSubregionID()
public java.lang.String getPreviousRegionID()
public java.lang.String getPreviousSubregionID()
public static java.lang.String getTypeLivingFemale_String()
public static java.lang.String getTypeDeadFemale_String()
public static java.lang.String getTypeLivingMale_String()
public static java.lang.String getTypeDeadMale_String()
public void init(GENESIS_Person a_Person)
public uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D get_Previous_Point2D()
public void set_Previous_Point2D(uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Point2D a_Point2D)
a_Point2D
- public void set_Death_Time(GENESIS_Time _Time_Death)
public void setMovement()
a_DecimalPlacePrecision
- toRoundToX_BigDecimal
- toRoundToY_BigDecimal
- public abstract int get_Gender(boolean handleOutOfMemoryError)
protected abstract int get_Gender()
public GENESIS_Age getAge()
public GENESIS_Age get_Age()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean getIsBirthday()
protected GENESIS_Time[] get_Work_Time()
protected boolean getIsWorkTime()
public boolean getIsTimeToSetOfToWork()
public uk.ac.leeds.ccg.andyt.vector.geometry.Vector_Network2D.Connection getNextConnectionOnRoute()
public void move(boolean handleOutOfMemoryError)
protected java.math.BigDecimal move()
_AggregatePopulationDensity_Grid2DSquareCellDouble
- public java.math.BigDecimal move(java.math.BigDecimal distance_BigDecimal)
distance_BigDecimal
-
public void set_Heading_Point2D(java.math.BigDecimal distance0_BigDecimal)
public boolean isAlive(GENESIS_Time a_Time)
protected static void log(java.lang.String message)
protected static void log(java.util.logging.Level level, java.lang.String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |