p3j.simulation
Class PPPMProcessor

java.lang.Object
  extended by james.core.base.Entity
      extended by james.core.processor.Processor
          extended by james.core.processor.RunnableProcessor
              extended by p3j.simulation.PPPMProcessor
All Implemented Interfaces:
james.core.base.IEntity, james.core.observe.IObservable, james.core.processor.IProcessor, james.core.processor.IRunnable, james.core.util.ITime<Double>, Serializable

public class PPPMProcessor
extends james.core.processor.RunnableProcessor

Encapsulates the execution of the PPPM. It calls the chosen IParamAssignmentGenerator to generate a valid assignment of PPPM variables, i.e. a mapping ParameterInstance -> ParameterAssignment that is defined for all ParameterInstance objects required for calculation (this is dependent on the number of generations, etc.). It also contains the functions that map the Parameter constants from Parameters to their destination fields in BasicParameters. This has be done for every kind of population. Created on February 18, 2007

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

Field Summary
 
Fields inherited from class james.core.processor.RunnableProcessor
executionControl
 
Fields inherited from class james.core.processor.Processor
accessRestriction
 
Constructor Summary
PPPMProcessor(IProjectionModel mod, IParamAssignmentGenerator gen)
          Default constructor.
 
Method Summary
 Double getTime()
           
protected  void nextStep()
          Calculates the outcome of *one* deterministic calculation.
 
Methods inherited from class james.core.processor.RunnableProcessor
getStatus, isPausing, isRunning, isStopping, next, pause, run, run, run, run, setDelay, stop
 
Methods inherited from class james.core.processor.Processor
cleanUp, executeNextStep, getClassName, getCompleteInfoString, getComputationTask, getModel, getModelName, getPostNextStepHook, getPreNextStepHook, getStartTime, getState, getSupportedModelClasses, installPostNextStepHook, installPreNextStepHook, isSupported, isSupported, setComputationTask, setModel, setState, supportedModels
 
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, toString, 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
 

Constructor Detail

PPPMProcessor

public PPPMProcessor(IProjectionModel mod,
                     IParamAssignmentGenerator gen)
Default constructor.

Parameters:
mod - the model to be simulated
gen - the assignment generator to be used
Method Detail

getTime

public Double getTime()
Specified by:
getTime in interface james.core.processor.IProcessor
Specified by:
getTime in interface james.core.util.ITime<Double>
Overrides:
getTime in class james.core.processor.Processor

nextStep

protected void nextStep()
Calculates the outcome of *one* deterministic calculation.

Specified by:
nextStep in class james.core.processor.Processor


Copyright © 2012. All Rights Reserved.