p3j.simulation
Class SingleExecution

java.lang.Object
  extended by p3j.simulation.SingleExecution

public class SingleExecution
extends Object

This class holds all data structures and methods that are required to use an IParamAssignmentGenerator for a single execution of the PPPM. Created: August 17, 2008

Author:
Christina Bohk, Roland Ewald

Constructor Summary
SingleExecution(IProjectionModel proj, IP3MDatabase dataBase)
          Default constructor.
 
Method Summary
protected  james.core.util.misc.Pair<Map<ParameterInstance,ParameterAssignment>,List<GeneratorError>> chooseAssignment(IParamAssignmentGenerator generator, james.core.math.random.generators.IRandom rng)
          Lets the IParamAssignmentGenerator choose a valid assignment and sets up all auxiliary data structures according to this.
 james.core.util.misc.Pair<ExecutionSummary,List<GeneratorError>> execute(IParamAssignmentGenerator generator)
          Sets up and executes a single variable assignment for the PPPM.
protected  Matrix2D getGenDepParameter(Parameter parameter, int generation)
          Retrieve the value for a generation-dependent parameter.
protected  Matrix2D getGenIndepParameter(Parameter parameter)
          Retrieve the value for a generation-independent parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleExecution

public SingleExecution(IProjectionModel proj,
                       IP3MDatabase dataBase)
Default constructor.

Parameters:
proj - the projection containing all input data
dataBase - the database to store results in
Method Detail

execute

public james.core.util.misc.Pair<ExecutionSummary,List<GeneratorError>> execute(IParamAssignmentGenerator generator)
Sets up and executes a single variable assignment for the PPPM.

Parameters:
generator - the assignment generator to be used
Returns:
error log from the IParamAssignmentGenerator

chooseAssignment

protected james.core.util.misc.Pair<Map<ParameterInstance,ParameterAssignment>,List<GeneratorError>> chooseAssignment(IParamAssignmentGenerator generator,
                                                                                                                      james.core.math.random.generators.IRandom rng)
Lets the IParamAssignmentGenerator choose a valid assignment and sets up all auxiliary data structures according to this.

Parameters:
generator - the component for generating the assignment to be calculated
rng - the random number generator
Returns:
error log from the IParamAssignmentGenerator

getGenIndepParameter

protected Matrix2D getGenIndepParameter(Parameter parameter)
Retrieve the value for a generation-independent parameter.

Parameters:
parameter - the parameter for which the value shall be retrieved
Returns:
value for the given parameter

getGenDepParameter

protected Matrix2D getGenDepParameter(Parameter parameter,
                                      int generation)
Retrieve the value for a generation-dependent parameter.

Parameters:
parameter - the parameter for which the value shall be retrieved
generation - the generation of the parameter
Returns:
value for the given parameter


Copyright © 2012. All Rights Reserved.