p3j.pppm
Class PPPModelFactory

java.lang.Object
  extended by james.core.base.Entity
      extended by james.core.base.NamedEntity
          extended by james.core.factories.Factory
              extended by james.core.model.plugintype.ModelFactory
                  extended by p3j.pppm.PPPModelFactory
All Implemented Interfaces:
james.core.base.IEntity, james.core.base.INamedEntity, james.core.cmdparameters.IParameters, james.core.observe.IObservable, Serializable, Comparable<james.core.base.INamedEntity>

public class PPPModelFactory
extends james.core.model.plugintype.ModelFactory

Creates ProjectionModel instances.

Author:
Christina Bohk, Roland Ewald
See Also:
Serialized Form

Field Summary
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 int DEFAULT_YEARS
          Default number of years to be predicted.
 
Fields inherited from class james.core.factories.Factory
absParameters
 
Constructor Summary
PPPModelFactory()
           
 
Method Summary
 james.core.model.symbolic.ISymbolicModel<?> create()
           
 ProjectionModel createDefaultModel()
          Creates a default ProjectionModel.
 ProjectionModel createModel(String name, String description, int generations, int years, int maxAge, int jumpOffYear)
          Creates a new PPPModel object.
 james.core.model.formalism.Formalism getFormalism()
           
 List<Class<? extends james.core.model.IModel>> getSupportedInterfaces()
           
 
Methods inherited from class james.core.model.plugintype.ModelFactory
toString
 
Methods inherited from class james.core.factories.Factory
getOptionalParameters, getParameters, getReadableName, getRequiredParameters, getSubAlgoByParams, getSubAlgoParams, hasParameters
 
Methods inherited from class james.core.base.NamedEntity
compareTo, getCompleteInfoString, getName, setName
 
Methods inherited from class james.core.base.Entity
changed, changed, getMediator, getSimpleId, isObserved, registerObserver, report, report, report, report, report, report, report, report, setMediator, unregister, unregisterObserver, unregisterObservers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface james.core.base.IEntity
getSimpleId
 
Methods inherited from interface james.core.observe.IObservable
changed, getMediator, registerObserver, setMediator, unregisterObserver, unregisterObservers
 

Field Detail

DEFAULT_GENERATIONS

public static final int DEFAULT_GENERATIONS
Default number of generations.

See Also:
Constant Field Values

DEFAULT_YEARS

public static final int DEFAULT_YEARS
Default number of years to be predicted.

See Also:
Constant Field Values

DEFAULT_MAX_AGE

public static final int DEFAULT_MAX_AGE
Default maximum age.

See Also:
Constant Field Values

DEFAULT_JUMP_OFF_YEAR

public static final int DEFAULT_JUMP_OFF_YEAR
The default calendar year.

Constructor Detail

PPPModelFactory

public PPPModelFactory()
Method Detail

create

public james.core.model.symbolic.ISymbolicModel<?> create()
Specified by:
create in class james.core.model.plugintype.ModelFactory

getFormalism

public james.core.model.formalism.Formalism getFormalism()
Specified by:
getFormalism in class james.core.model.plugintype.ModelFactory

getSupportedInterfaces

public List<Class<? extends james.core.model.IModel>> getSupportedInterfaces()
Specified by:
getSupportedInterfaces in class james.core.model.plugintype.ModelFactory

createDefaultModel

public ProjectionModel createDefaultModel()
Creates a default ProjectionModel.

Returns:
the projection model

createModel

public ProjectionModel createModel(String name,
                                   String description,
                                   int generations,
                                   int years,
                                   int maxAge,
                                   int jumpOffYear)
Creates a new PPPModel object.

Parameters:
name - the name
description - the description
generations - the number of generations
years - the number of years
maxAge - the maximum age
jumpOffYear - the jump-off year
Returns:
the projection model


Copyright © 2012. All Rights Reserved.