public class ExperimentRunner
extends java.lang.Object
| Constructor and Description |
|---|
ExperimentRunner(IExperimentSetConfig config,
IExperimentSetEvaluator conductor,
IExperimentDatabaseHandle databaseHandle) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
conductExperimentIfNotAlreadyConducted(Experiment exp)
Conducts a single experiment
|
void |
randomlyConductExperiments(boolean reload)
Conducts an unbound number of randomly chosen experiments from the grid.
|
void |
randomlyConductExperiments(int maxNumberOfExperiments,
boolean reload)
Conducts a limited number of not yet conducted experiments randomly chosen
from the grid.
|
void |
setConditionMemoryLimitCheck(boolean doCheck)
This method can be used to toggle the check of the memory limit.
|
public ExperimentRunner(IExperimentSetConfig config, IExperimentSetEvaluator conductor, IExperimentDatabaseHandle databaseHandle)
public void randomlyConductExperiments(int maxNumberOfExperiments,
boolean reload)
throws ExperimentDBInteractionFailedException,
IllegalExperimentSetupException
maxNumberOfExperiments - Limit for the number of experimentsreload - Whether or not the experiment setup should be reloaded between two
experiment runs.ExperimentDBInteractionFailedExceptionIllegalExperimentSetupExceptionpublic void randomlyConductExperiments(boolean reload)
throws ExperimentDBInteractionFailedException,
IllegalExperimentSetupException
reload - Whether or not the experiment setup should be reloaded between two
experiment runs.IllegalExperimentSetupExceptionExperimentDBInteractionFailedExceptionpublic boolean conductExperimentIfNotAlreadyConducted(Experiment exp) throws ExperimentDBInteractionFailedException
exp - ExperimentAlreadyExistsInDatabaseExceptionExperimentDBInteractionFailedExceptionException. - These are not the exceptions thrown by the experiment itself,
because these are logged into the database. Exceptions thrown
here are technical exceptions that occur when arranging the
experimentpublic void setConditionMemoryLimitCheck(boolean doCheck)
doCheck - A flag whether the check shall be performed or not. If doCheck is
true, the check will be performed and the actually available
memory in this runtime environment will be written to the
database. Otherwise, the memory limit specified in the
configuration file will be written to the database.