public abstract class ProblemMediatorCentral extends ProblemMediator
Modifier and Type | Field and Description |
---|---|
protected java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
dataHash
List of data elements
|
protected java.util.ArrayList<java.lang.String> |
serviceNames
List of service names
|
protected java.util.ArrayList<SolutionContainer> |
solutionHierarc
Hierarchical / structural list of iterated solutions
|
bestResult, fullTrace, problem, result, solutionOrder, solutionSet, solutionsNumber, solverType, testEnded
constructorParams, createServices, dataConditions, datasetType, dirPath, externalScript, heuristicOptions, heuristicType, inputVariables, linkSpec, metricType, serverSpec, serviceClasses, serviceJarFiles, servicesNum, serviceType, tokenizer
Constructor and Description |
---|
ProblemMediatorCentral(org.licas.PasswordHandler thePasswordHandler)
Create a new instance of ProblemMediatorCentral.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createStoreData(TestSpec testSpec)
Create a new set of problem datasets.
|
protected java.util.ArrayList<org.ai_heuristic.eval.metric.MetricDataset> |
getProblemsList(TestSpec testSpec)
Retrieve or generate the problems list from data files or services.
|
java.util.ArrayList<SolutionContainer> |
getSolutionHierarchy()
Get any higher level hierarchy of solutions that might have been generated.
|
boolean |
hasSolutions()
Return true if any solutions are currently stored.
|
protected java.util.ArrayList<org.ai_heuristic.eval.metric.MetricDataset> |
readData(java.lang.String filePath,
java.lang.String separator)
Read a data file of values suitable for the entropy grid.
|
void |
resetValues()
Reset to starting values
|
addHeuristicOption, clearHeuristicOptions, copyToConfig, getFullTrace, getHeuristicOptions, getHeuristicType, getProblem, getProblemNames, getSolutionSet, getSolutionsNumber, getTestEnded, processResult, resetForNextRun, setDatasetType, setFullTrace, setHeuristicOptions, setHeuristicType, setProblem, setSolutionSet, setSolutionsNumber
getDatasetType, getDirFolder, getTokenizer, parseProblemDataset, setDirFolder, setTokenizer, validateScript, validateVariable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResultXml, solve
protected java.util.ArrayList<java.lang.String> serviceNames
protected java.util.ArrayList<SolutionContainer> solutionHierarc
protected java.util.LinkedHashMap<java.lang.String,java.lang.Object> dataHash
public ProblemMediatorCentral(org.licas.PasswordHandler thePasswordHandler)
thePasswordHandler
- for storing passwords.public void resetValues()
resetValues
in class ProblemMediator
protected void createStoreData(TestSpec testSpec) throws java.lang.Exception
','
-style separator in the file.testSpec
- the model of the tests to perform.java.lang.Exception
- any error.protected java.util.ArrayList<org.ai_heuristic.eval.metric.MetricDataset> readData(java.lang.String filePath, java.lang.String separator) throws java.lang.Exception
filePath
- the path to a local file. Values only, separated by commas.separator
- the tokenizer character.java.lang.Exception
- any error.protected java.util.ArrayList<org.ai_heuristic.eval.metric.MetricDataset> getProblemsList(TestSpec testSpec) throws java.lang.Exception
testSpec
- the test specification.java.lang.Exception
- any error.public boolean hasSolutions()
public java.util.ArrayList<SolutionContainer> getSolutionHierarchy()