pop.model
Class PopulationSizes

java.lang.Object
  |
  +--pop.model.PopulationCharacteristics
        |
        +--pop.model.PopulationSizes

public class PopulationSizes
extends PopulationCharacteristics

Age- and sex-specific population sizes.


Constructor Summary
PopulationSizes(int[][] sizes)
          Basic constructor (one set of population sizes).
PopulationSizes(PopulationSizes other)
          Alternate constructor creates clone of sizes parameter.
 
Method Summary
 int size(int age, int sex)
          Returns age- and sex-specific population size.
 int[][] sizes()
          Returns 2-dimensional array of population sizes by sex (first dimension, with females in the first row, males second row) and age (second dimension).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopulationSizes

public PopulationSizes(int[][] sizes)
Basic constructor (one set of population sizes).
Parameters:
sizes - - 2-dimensional array of population sizes by sex (first dimension, with females in the first row, males second row) and age (second dimension).

PopulationSizes

public PopulationSizes(PopulationSizes other)
Alternate constructor creates clone of sizes parameter.
Method Detail

size

public int size(int age,
                int sex)
Returns age- and sex-specific population size.
Parameters:
age - - 0 to maximum cohort age.
sex - - FEMALE or MALE, static constant from Statics.

sizes

public int[][] sizes()
Returns 2-dimensional array of population sizes by sex (first dimension, with females in the first row, males second row) and age (second dimension).