|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pop.model.Results
Stores all of the results from the model, and provides access to the results of each year for which the model has been run, plus the final populations. Note: expects to be created and controlled by ModelManager.
ModelManager
Constructor Summary | |
Results()
Unavailable. |
|
Results(Constants c)
Only useable constructor. |
Method Summary | |
int[][] |
births(int year)
Returns 2-dimensional array of births for the specified year. |
int[] |
births(int year,
int category)
Returns array of births for the specified year and population category (with females in the first row, males second row). |
Constants |
constants()
Returns constants associated with this model. |
int[][][] |
deaths(int year)
Returns 3-dimensional array of deaths for the specified year. |
int[][] |
deaths(int year,
int category)
Returns 2-dimensional array of deaths for the specified year and population category. |
PopulationSizes[] |
final_population()
Returns the array of final population sizes; elements of array correspond to population categories. |
Migration[] |
migration(int year)
Returns array of migrations for the specified year; elements of array correspond to population category. |
PopulationSizes[] |
population(int year)
Returns array of population sizes for the specified year; elements of array correspond to population category. |
void |
store(int year,
Population[] p,
Migration[] m)
Stores results for the specified year. |
void |
store(Population[] p)
Stores final population results. |
int[] |
total_births(int year)
Returns array of total births for a year. |
int[] |
total_deaths(int year)
Returns array of total deaths for a year. |
int[] |
total_final_population()
Returns array of total final populations; elements of array correspond to population categories. |
int[] |
total_migration(int year)
Returns array of total migration for the specified year; elements of array correpond to population categories; |
int[] |
total_population(int year)
Returns array of total populations for the indicated year; elements of array correspond to population categories. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Results(Constants c)
c
- Constants applying to the current model.p
- Array of Populations, assumed to have just
been initialized by the ModelManager; used
to acquire the initial population sizes.public Results()
Method Detail |
public void store(int year, Population[] p, Migration[] m)
public void store(Population[] p)
public PopulationSizes[] population(int year)
public int[] total_population(int year)
public PopulationSizes[] final_population()
public int[] total_final_population()
public int[] total_births(int year)
public int[] births(int year, int category)
public int[][] births(int year)
public int[] total_deaths(int year)
public int[][] deaths(int year, int category)
public int[][][] deaths(int year)
public Migration[] migration(int year)
public int[] total_migration(int year)
public Constants constants()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |