| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<org.licas_xml.abs.Element> |
datasetFiles
List of files in XML format, to parse to create the data from
|
Evaluator |
evalMediator
To evaluate the solution sets
|
protected org.licas.PasswordHandler |
passwordHandler
For referencing a local password store
|
protected java.util.LinkedHashMap<java.lang.String,org.ai_heuristic.eval.metric.MetricDataset> |
problemDatasets
List of problem datasets
|
ProblemMediator |
problemMediator
The problem specification
|
protected Result |
result
The test result
|
ProblemSolverMediator |
solverMediator
To mediate between services on the server and any centralised heuristic
|
TestSpec |
testSpec
The test specification
|
| Constructor and Description |
|---|
RunTests(org.licas.PasswordHandler thePasswordHandler)
Create a new instance of RunTests.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configureTest(java.lang.String testScriptFile)
Set the environment up for running a test.
|
boolean |
configureTest(TestSpec thisTestSpec)
Configure the test objects for executing a test.
|
Result |
getTestResult()
Get the test result as lists of clustered services.
|
abstract java.lang.String |
runTestSet()
Run a set of tests based on an already created script object and initialised
environment.
|
protected double |
totalLinkScore(org.licas_xml.abs.Element linksDoc)
Parse the links document and return the total links weight score.
|
protected java.lang.String |
xmlToTaggedString(org.licas_xml.abs.Element resultXml)
Convert the result from XML to a tagged String-based description.
|
public TestSpec testSpec
public ProblemMediator problemMediator
public ProblemSolverMediator solverMediator
public Evaluator evalMediator
protected org.licas.PasswordHandler passwordHandler
protected java.util.ArrayList<org.licas_xml.abs.Element> datasetFiles
protected java.util.LinkedHashMap<java.lang.String,org.ai_heuristic.eval.metric.MetricDataset> problemDatasets
protected Result result
public RunTests(org.licas.PasswordHandler thePasswordHandler)
thePasswordHandler - for storing passwords.public abstract java.lang.String runTestSet()
throws java.lang.Exception
runTestSet in interface TestDefjava.lang.Exception - any error.public Result getTestResult() throws java.lang.Exception
java.lang.Exception - any error.public boolean configureTest(java.lang.String testScriptFile)
throws java.lang.Exception
configureTest in interface TestDeftestScriptFile - the file path to the test script to read.java.lang.Exception - any error.public boolean configureTest(TestSpec thisTestSpec) throws java.lang.Exception
configureTest in interface TestDefthisTestSpec - the test specification object.java.lang.Exception - any error.protected double totalLinkScore(org.licas_xml.abs.Element linksDoc)
linksDoc - an XML-based description of all service links.protected java.lang.String xmlToTaggedString(org.licas_xml.abs.Element resultXml)
resultXml - the result received from a problem solver.