Package ai.libs.jaicore.experiments
Class ExperimentDatabasePreparer
- java.lang.Object
-
- ai.libs.jaicore.experiments.ExperimentDatabasePreparer
-
- All Implemented Interfaces:
ai.libs.jaicore.basic.ILoggingCustomizable
public class ExperimentDatabasePreparer extends java.lang.Object implements ai.libs.jaicore.basic.ILoggingCustomizable
-
-
Constructor Summary
Constructors Constructor Description ExperimentDatabasePreparer(IExperimentSetConfig config, IExperimentDatabaseHandle databaseHandle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
ExperimentDatabasePreparer
public ExperimentDatabasePreparer(IExperimentSetConfig config, IExperimentDatabaseHandle databaseHandle) throws ExperimentDBInteractionFailedException
-
-
Method Detail
-
synchronizeExperiments
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
Creates all experiments in the database that should exist with respect to the configuration but have not been created yet.- Returns:
- Throws:
ExperimentDBInteractionFailedException
IllegalExperimentSetupException
ExperimentAlreadyExistsInDatabaseException
ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmTimeoutedException
java.lang.InterruptedException
ai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledException
-
getAllPossibleKeyCombinations
public 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
- Throws:
IllegalExperimentSetupException
ExperimentDBInteractionFailedException
ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmTimeoutedException
java.lang.InterruptedException
ai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledException
-
getAllValuesForKey
public java.util.List<java.lang.String> getAllValuesForKey(java.lang.String key) throws IllegalKeyDescriptorException
- Throws:
IllegalKeyDescriptorException
-
setConditionMemoryLimitCheck
public void setConditionMemoryLimitCheck(boolean doCheck)
This method can be used to toggle the check of the memory limit. If the check is active (default or doCheck == true), the memory actually available in this runtime will be taken as an entry for the memory limit.- Parameters:
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.
-
getLoggerName
public java.lang.String getLoggerName()
- Specified by:
getLoggerName
in interfaceai.libs.jaicore.basic.ILoggingCustomizable
-
setLoggerName
public void setLoggerName(java.lang.String name)
- Specified by:
setLoggerName
in interfaceai.libs.jaicore.basic.ILoggingCustomizable
-
-