public class ExperimentDatabasePreparer
extends java.lang.Object
implements ai.libs.jaicore.basic.ILoggingCustomizable
| Constructor and Description |
|---|
ExperimentDatabasePreparer(IExperimentSetConfig config,
IExperimentDatabaseHandle databaseHandle) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
getAllPossibleKeyCombinations() |
java.util.List<java.lang.String> |
getAllValuesForKey(java.lang.String key) |
java.lang.String |
getLoggerName() |
void |
setConditionMemoryLimitCheck(boolean doCheck)
This method can be used to toggle the check of the memory limit.
|
void |
setLoggerName(java.lang.String name) |
java.util.List<ExperimentDBEntry> |
synchronizeExperiments()
Creates all experiments in the database that should exist with respect to the configuration but have not been created yet.
|
public ExperimentDatabasePreparer(IExperimentSetConfig config, IExperimentDatabaseHandle databaseHandle) throws ExperimentDBInteractionFailedException
public java.util.List<ExperimentDBEntry> synchronizeExperiments() throws ExperimentDBInteractionFailedException, IllegalExperimentSetupException, ExperimentAlreadyExistsInDatabaseException, ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmTimeoutedException, java.lang.InterruptedException, ai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledException
ExperimentDBInteractionFailedExceptionIllegalExperimentSetupExceptionExperimentAlreadyExistsInDatabaseExceptionai.libs.jaicore.basic.algorithm.exceptions.AlgorithmTimeoutedExceptionjava.lang.InterruptedExceptionai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledExceptionpublic java.util.List<java.util.Map<java.lang.String,java.lang.String>> getAllPossibleKeyCombinations()
throws IllegalExperimentSetupException,
ExperimentDBInteractionFailedException,
ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmTimeoutedException,
java.lang.InterruptedException,
ai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledException
IllegalExperimentSetupExceptionExperimentDBInteractionFailedExceptionai.libs.jaicore.basic.algorithm.exceptions.AlgorithmTimeoutedExceptionjava.lang.InterruptedExceptionai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledExceptionpublic java.util.List<java.lang.String> getAllValuesForKey(java.lang.String key)
throws IllegalKeyDescriptorException
IllegalKeyDescriptorExceptionpublic 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.public 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