View Javadoc

1   /*
2    * Copyright 2006 - 2012 Christina Bohk and Roland Ewald
3    *  
4    * Licensed under the Apache License, Version 2.0 (the "License"); 
5    * you may not use this file except in compliance with the License. 
6    * You may obtain a copy of the License at 
7    *  
8    *  http://www.apache.org/licenses/LICENSE-2.0
9    *  
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
13   * See the License for the specific language governing permissions and 
14   * limitations under the License. 
15   */
16  package p3j.simulation.calculation.deterministic.parameters;
17  
18  import p3j.misc.math.Matrix2D;
19  import p3j.pppm.PPPModelFactory;
20  import p3j.simulation.calculation.deterministic.Constants;
21  
22  /**
23   * Population calculation for in-flow sub-populations.
24   * 
25   * Created on July 22, 2006
26   * 
27   * @author Christina Bohk
28   * @author Roland Ewald
29   * 
30   */
31  public class InFlowParameters extends BasicParameters {
32  
33    /** Year-by year age-specific matrix of female migrants. */
34    private Matrix2D migrantsXf;
35  
36    /** Year-by year age-specific matrix of male migrants. */
37    private Matrix2D migrantsXm;
38  
39    /**
40     * Default constructor.
41     * 
42     * @param numOfYears
43     *          number of years to be predicted
44     * @param maximumAge
45     *          the maximum age to be considered
46     */
47    public InFlowParameters(int numOfYears, int maximumAge) {
48      super(numOfYears, maximumAge);
49    }
50  
51    /**
52     * Constructor for bean compliance. Do NOT use manually.
53     */
54    public InFlowParameters() {
55      super(PPPModelFactory.DEFAULT_YEARS, Constants.DEFAULT_MAXIMUM_AGE);
56    }
57  
58    public Matrix2D getMigrantsXf() {
59      return migrantsXf;
60    }
61  
62    public void setMigrantsXf(Matrix2D migrantsXf) {
63      this.migrantsXf = migrantsXf;
64    }
65  
66    public Matrix2D getMigrantsXm() {
67      return migrantsXm;
68    }
69  
70    public void setMigrantsXm(Matrix2D migrantsXm) {
71      this.migrantsXm = migrantsXm;
72    }
73  
74  }