p3j.experiment
Class ExperimentDefinition

java.lang.Object
  extended by p3j.experiment.ExperimentDefinition

public class ExperimentDefinition
extends Object

Contains all information that are necessary to repeat an experiment. Created: August 20, 2008

Author:
Christina Bohk, Roland Ewald

Constructor Summary
ExperimentDefinition()
          Constructor for bean compliance.
ExperimentDefinition(ProjectionModel proj, long randS, Date currentDate, String userName, Class<? extends IParamAssignmentGenerator> sim)
          Default constructor.
 
Method Summary
 Date getDate()
          Gets the date.
 int getID()
          Gets the id.
 ProjectionModel getProjection()
          Gets the projection.
 long getRandSeed()
          Gets the rand seed.
 ResultSet getResultSet()
          Gets the result set.
 ISimulationParameters getSimParams()
          Gets the sim params.
 Class<? extends IParamAssignmentGenerator> getSimulator()
          Gets the simulator.
 String getUser()
          Gets the user.
 void setDate(Date date)
          Sets the date.
 void setID(int uniqueID)
          Sets the id.
 void setProjection(ProjectionModel projection)
          Sets the projection.
 void setRandSeed(long randSeed)
          Sets the rand seed.
 void setResultSet(ResultSet resultSet)
          Sets the result set.
 void setSimParams(ISimulationParameters simParams)
          Sets the sim params.
 void setSimulator(Class<? extends IParamAssignmentGenerator> simulator)
          Sets the simulator.
 void setUser(String user)
          Sets the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExperimentDefinition

public ExperimentDefinition(ProjectionModel proj,
                            long randS,
                            Date currentDate,
                            String userName,
                            Class<? extends IParamAssignmentGenerator> sim)
Default constructor.

Parameters:
proj - the input used for the projection
randS - the seed to be used for the random number generator (only relevant for Monte-Carlo simulators)
currentDate - current date
userName - name of the user that issued this experiment
sim - the class of the simulation algorithm

ExperimentDefinition

public ExperimentDefinition()
Constructor for bean compliance.

Method Detail

getRandSeed

public long getRandSeed()
Gets the rand seed.

Returns:
the rand seed

setRandSeed

public void setRandSeed(long randSeed)
Sets the rand seed.

Parameters:
randSeed - the new rand seed

getUser

public String getUser()
Gets the user.

Returns:
the user

setUser

public void setUser(String user)
Sets the user.

Parameters:
user - the new user

getDate

public Date getDate()
Gets the date.

Returns:
the date

setDate

public void setDate(Date date)
Sets the date.

Parameters:
date - the new date

getProjection

public ProjectionModel getProjection()
Gets the projection.

Returns:
the projection

setProjection

public void setProjection(ProjectionModel projection)
Sets the projection.

Parameters:
projection - the new projection

getSimulator

public Class<? extends IParamAssignmentGenerator> getSimulator()
Gets the simulator.

Returns:
the simulator

setSimulator

public void setSimulator(Class<? extends IParamAssignmentGenerator> simulator)
Sets the simulator.

Parameters:
simulator - the new simulator

getSimParams

public ISimulationParameters getSimParams()
Gets the sim params.

Returns:
the sim params

setSimParams

public void setSimParams(ISimulationParameters simParams)
Sets the sim params.

Parameters:
simParams - the new sim params

getResultSet

public ResultSet getResultSet()
Gets the result set.

Returns:
the result set

setResultSet

public void setResultSet(ResultSet resultSet)
Sets the result set.

Parameters:
resultSet - the new result set

getID

public int getID()
Gets the id.

Returns:
the id

setID

public void setID(int uniqueID)
Sets the id.

Parameters:
uniqueID - the new id


Copyright © 2012. All Rights Reserved.