pop.model
Class Cohort

java.lang.Object
  |
  +--pop.model.Cohort

public class Cohort
extends java.lang.Object

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.

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

Cohort

public Cohort(int size,
              int age,
              Population group,
              int sex)
Only constructor.
Parameters:
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, immutable
Method Detail

size

public int size()
Current size of cohort, not counting deaths or migrants.

births

public int births()
Births attributable to this cohort this time period. Applies to female cohorts only.

deaths

public int deaths()
Deaths in this cohort over this time period.

survivors

public int survivors()
Size of cohort after current deaths, excluding migrants.

set_size

public void set_size(int size)
Resets cohort size to the value of the parameter.