|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pop.model.Cohort
A particular age-sex group within a Population. Holds size and other characteristics of this group at a particular point in time. Performs basic calculations for births and deaths during the time period.
Population
Constructor Summary | |
Cohort(int size,
int age,
Population group,
int sex)
Only constructor. |
Method Summary | |
int |
births()
Births attributable to this cohort this time period. |
int |
deaths()
Deaths in this cohort over this time period. |
void |
set_size(int size)
Resets cohort size to the value of the parameter. |
int |
size()
Current size of cohort, not counting deaths or migrants. |
int |
survivors()
Size of cohort after current deaths, excluding migrants. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Cohort(int size, int age, Population group, int sex)
size
- - number of people in the cohort at the
time of initial construction.age
- - age of cohort, immutable (after construction).group
- - associated Population, immutable.sex
- - sex constant, either MALE or FEMALE, immutableMethod Detail |
public int size()
public int births()
public int deaths()
public int survivors()
public void set_size(int size)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |