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   * 
24   * Parameters for calculating the basic population.
25   * 
26   * Basic parameter class
27   * 
28   * Created on July 09, 2006
29   * 
30   * @author Christina Bohk
31   * @author Roland Ewald
32   * 
33   */
34  public class NativeParameters extends BasicParameters {
35  
36  	/** Age-specific male population at the end of the start year. */
37  	private Matrix2D pEndSYm;
38  
39  	/** Age-specific female population at the end of the start year. */
40  	private Matrix2D pEndSYf;
41  
42  	/**
43  	 * Default constructor.
44  	 * 
45  	 * @param numOfYears
46  	 *          number of years to be projected
47  	 * @param maximumAge
48  	 *          the maximum age to be considered
49  	 */
50  	public NativeParameters(int numOfYears, int maximumAge) {
51  		super(numOfYears, maximumAge);
52  	}
53  
54  	/**
55  	 * Constructor for bean compliance. Do NOT use manually.
56  	 */
57  	public NativeParameters() {
58  		super(PPPModelFactory.DEFAULT_YEARS, Constants.DEFAULT_MAXIMUM_AGE);
59  	}
60  
61  	public Matrix2D getPEndSYm() {
62  		return pEndSYm;
63  	}
64  
65  	public void setPEndSYm(Matrix2D endSYm) {
66  		pEndSYm = endSYm;
67  	}
68  
69  	public Matrix2D getPEndSYf() {
70  		return pEndSYf;
71  	}
72  
73  	public void setPEndSYf(Matrix2D endSYf) {
74  		pEndSYf = endSYf;
75  	}
76  
77  }