public class ExperimentRunner
extends java.lang.Object
implements ai.libs.jaicore.basic.ILoggingCustomizable
| Constructor and Description |
|---|
ExperimentRunner(IExperimentSetConfig config,
IExperimentSetEvaluator conductor,
IExperimentDatabaseHandle databaseHandle) |
| Modifier and Type | Method and Description |
|---|---|
void |
conductExperiment(ExperimentDBEntry expEntry)
Conducts a single experiment
|
java.lang.String |
getLoggerName() |
void |
randomlyConductExperiments()
Conducts an unbound number of randomly chosen experiments from the grid.
|
void |
randomlyConductExperiments(int maxNumberOfExperiments)
Conducts a limited number of not yet conducted experiments randomly chosen
from the grid.
|
void |
setLoggerName(java.lang.String name) |
public ExperimentRunner(IExperimentSetConfig config, IExperimentSetEvaluator conductor, IExperimentDatabaseHandle databaseHandle) throws ExperimentDBInteractionFailedException
public void randomlyConductExperiments(int maxNumberOfExperiments)
throws ExperimentDBInteractionFailedException,
java.lang.InterruptedException
maxNumberOfExperiments - Limit for the number of experimentsreload - Whether or not the experiment setup should be reloaded between two
experiment runs.ExperimentDBInteractionFailedExceptionjava.lang.InterruptedExceptionIllegalExperimentSetupExceptionpublic void randomlyConductExperiments()
throws ExperimentDBInteractionFailedException,
java.lang.InterruptedException
reload - Whether or not the experiment setup should be reloaded between two
experiment runs.IllegalExperimentSetupExceptionExperimentDBInteractionFailedExceptionjava.lang.InterruptedExceptionpublic void conductExperiment(ExperimentDBEntry expEntry) throws ExperimentDBInteractionFailedException, ExperimentAlreadyStartedException, java.lang.InterruptedException
exp - ExperimentAlreadyExistsInDatabaseExceptionExperimentDBInteractionFailedExceptionExperimentAlreadyStartedExceptionjava.lang.InterruptedExceptionException. - 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 java.lang.String getLoggerName()
getLoggerName in interface ai.libs.jaicore.basic.ILoggingCustomizablepublic void setLoggerName(java.lang.String name)
setLoggerName in interface ai.libs.jaicore.basic.ILoggingCustomizable