public class PPPModelFactory
extends org.jamesii.core.model.plugintype.ModelFactory
ProjectionModel
instances.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_GENERATIONS
Default number of generations.
|
static int |
DEFAULT_JUMP_OFF_YEAR
The default calendar year.
|
static int |
DEFAULT_MAX_AGE
Default maximum age.
|
static SubPopulationModel |
DEFAULT_SUBPOPULATION_MODEL
The default model of sub-populations.
|
static int |
DEFAULT_YEARS
Default number of years to be predicted.
|
Constructor and Description |
---|
PPPModelFactory() |
Modifier and Type | Method and Description |
---|---|
org.jamesii.core.model.symbolic.ISymbolicModel<?> |
create() |
static ProjectionModel |
createDefaultModel()
Creates a default
ProjectionModel . |
static SubPopulationModel |
createDefaultSubPopulationModel()
Creates the default sub-population model (natives, immigrants, and
emigrants).
|
static ProjectionModel |
createModel(String name,
String description,
int generations,
int years,
int maxAge,
int jumpOffYear,
SubPopulationModel subPopModel)
Creates a new PPPModel object.
|
org.jamesii.core.model.formalism.Formalism |
getFormalism() |
List<Class<? extends org.jamesii.core.model.IModel>> |
getSupportedInterfaces() |
getParameter, getReadableName, getSubAlgoByParams, getSubAlgoParams, setInstanceContext
compareTo, getCompleteInfoString, getName, setName
changed, changed, getMediator, getSimpleId, isObserved, registerObserver, report, report, report, report, report, report, report, report, setMediator, unregister, unregisterObserver, unregisterObservers
public static final int DEFAULT_GENERATIONS
public static final int DEFAULT_YEARS
public static final int DEFAULT_MAX_AGE
public static final int DEFAULT_JUMP_OFF_YEAR
public static final SubPopulationModel DEFAULT_SUBPOPULATION_MODEL
public org.jamesii.core.model.symbolic.ISymbolicModel<?> create()
create
in class org.jamesii.core.model.plugintype.ModelFactory
public org.jamesii.core.model.formalism.Formalism getFormalism()
getFormalism
in class org.jamesii.core.model.plugintype.ModelFactory
public List<Class<? extends org.jamesii.core.model.IModel>> getSupportedInterfaces()
getSupportedInterfaces
in class org.jamesii.core.model.plugintype.ModelFactory
public static ProjectionModel createDefaultModel()
ProjectionModel
.public static SubPopulationModel createDefaultSubPopulationModel()
public static ProjectionModel createModel(String name, String description, int generations, int years, int maxAge, int jumpOffYear, SubPopulationModel subPopModel)
name
- the namedescription
- the descriptiongenerations
- the number of generationsyears
- the number of yearsmaxAge
- the maximum agejumpOffYear
- the jump-off yearsubPopModel
- the model of sub-populationsCopyright © 2013. All Rights Reserved.