public class Parameter extends Object implements Serializable
valueWidth
and valueHeight
. These
are given in MatrixDimension
. A parameter might be
generation-dependent, expressed by generationDependent
,
e.g., fertility of X-th generation of emigrants. Note that this class only
stores the general aspects of the parameter. The definition of an actual
input parameter kind, e.g. the fertility of the 5-th generation of emigrants,
is done by ParameterInstance
objects. All instances of this class are
defined as constants in Parameters
.
Created on January 18, 2007Constructor and Description |
---|
Parameter()
Constructor for bean compatibility.
|
Parameter(int paramID,
boolean genDependent,
String paramName,
MatrixDimension height,
MatrixDimension width,
Population pop)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getID() |
String |
getName() |
Population |
getPopulation() |
MatrixDimension |
getValueHeight() |
MatrixDimension |
getValueWidth() |
boolean |
isGenerationDependent() |
void |
setGenerationDependent(boolean generationDependent) |
void |
setID(int paramID) |
void |
setName(String name) |
void |
setPopulation(Population population) |
void |
setValueHeight(MatrixDimension valHeight) |
void |
setValueWidth(MatrixDimension valWidth) |
String |
toString() |
public Parameter(int paramID, boolean genDependent, String paramName, MatrixDimension height, MatrixDimension width, Population pop)
paramID
- the unique identifier of the parametergenDependent
- if true, this parameter is generation-dependentparamName
- name of the parameterheight
- height of the parameter matrixwidth
- width of the parameter matrixpop
- the population this parameter belongs topublic Parameter()
public MatrixDimension getValueWidth()
public void setValueWidth(MatrixDimension valWidth)
public MatrixDimension getValueHeight()
public void setValueHeight(MatrixDimension valHeight)
public boolean isGenerationDependent()
public void setGenerationDependent(boolean generationDependent)
public int getID()
public final void setID(int paramID)
public String getName()
public void setName(String name)
public Population getPopulation()
public void setPopulation(Population population)
Copyright © 2012. All Rights Reserved.