public class LinkProblemMediator extends ProblemMediatorDistributed
serviceNames
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 |
---|
LinkProblemMediator(org.licas.PasswordHandler thePasswordHandler)
Create a new instance of LinkProblemMediator.
|
Modifier and Type | Method and Description |
---|---|
org.licas_xml.abs.Element |
getResultXml()
Get the results of the test.
|
boolean |
resetForNextRun(java.util.HashMap varList)
Reset the problem-solving structures for the next run.
|
Result |
solve(TestSpec testSpec)
Optimise the solutions using the appropriate framework.
|
protected ClusterResult |
toClusters(TestSpec testSpec)
Ask each service in turn who it is clustered with.
|
addHeuristicOption, clearHeuristicOptions, copyToConfig, getFullTrace, getHeuristicOptions, getHeuristicType, getProblem, getProblemNames, getSolutionSet, getSolutionsNumber, getTestEnded, processResult, resetValues, setDatasetType, setFullTrace, setHeuristicOptions, setHeuristicType, setProblem, setSolutionSet, setSolutionsNumber
public LinkProblemMediator(org.licas.PasswordHandler thePasswordHandler)
thePasswordHandler
- for storing passwords.public Result solve(TestSpec testSpec) throws java.lang.Exception
testSpec
- the model of the tests to perform.java.lang.Exception
- any error.public boolean resetForNextRun(java.util.HashMap varList) throws java.lang.Exception
resetForNextRun
in class ProblemMediator
varList
- a list of variables as key-value pairs. Should include the service type.java.lang.Exception
- any error.protected ClusterResult toClusters(TestSpec testSpec) throws java.lang.Exception
testSpec
- the model of the tests to perform.java.lang.Exception
- any error.public org.licas_xml.abs.Element getResultXml() throws java.lang.Exception
java.lang.Exception
- any error.