pop.model
Class Migration
java.lang.Object
|
+--pop.model.PopulationCharacteristics
|
+--pop.model.Migration
- public class Migration
- extends PopulationCharacteristics
Age- and sex-specific migration levels of a particular
Population.
Constructor Summary |
Migration(int[][] migrants)
Basic constructor (one year of migration). |
Method Summary |
int[] |
female_migrants()
Returns array of female inmigrants. |
int |
inmigrants(int age,
int sex)
Returns age- and sex-specific number of inmigrants. |
int[] |
male_migrants()
Returns array of male inmigrants. |
int[][] |
migrants()
Returns 2-dimensional array of inmigrants
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 |
Migration
public Migration(int[][] migrants)
- Basic constructor (one year of migration).
precondition: migrants matrix is defined in full, with
appropriate Statics dimensions.
- Parameters:
migrants
- - 2-dimensional array of migrants
by sex (first dimension, with females
in the first row, males second row) and
age (second dimension).
inmigrants
public int inmigrants(int age,
int sex)
- Returns age- and sex-specific number of inmigrants.
- Parameters:
age
- - 0 to maximum cohort age.sex
- - FEMALE or MALE, static constant
from Statics.
female_migrants
public int[] female_migrants()
- Returns array of female inmigrants.
male_migrants
public int[] male_migrants()
- Returns array of male inmigrants.
migrants
public int[][] migrants()
- Returns 2-dimensional array of inmigrants
by sex (first dimension, with females in the first row,
males second row) and age (second dimension).