public class ProblemScript
extends org.licas.service.spec.BehaviourScript
TestSpec
and ProblemMediator
classes can then be created from this script specification.
Some of the values need to be hard coded as part of a test class, but the ones that repeat
or are changed can be included in this script.Modifier and Type | Field and Description |
---|---|
int |
maxSolutionNum
Maximum number of solutions or possibly a beam width.
|
double |
rangeValue
The value for considering scores as the same.
|
boolean |
similarityRangeAsPercentage
If true, then the comparison range is a percentage of the value, if false,
then it is an exact amount.
|
java.lang.String |
solverType
The solver framework is the controlling framework in which the heuristics are run.
|
TestRunsScript |
testRunsScript
Configuration for the test runs themselves.
|
constructorParams, createServices, dataConditions, datasetType, dirPath, externalScript, heuristicOptions, heuristicType, inputVariables, linkSpec, metricType, serverSpec, serviceClasses, serviceJarFiles, servicesNum, serviceType, tokenizer
Constructor and Description |
---|
ProblemScript(org.licas.PasswordHandler thePasswordHandler)
Create a new instance of ProblemScript.
|
Modifier and Type | Method and Description |
---|---|
boolean |
convertForInitialise()
Convert the set of values into the structure to be used to initialise the test services.
|
void |
copy(org.licas.service.spec.BehaviourScript behaviourScript)
Copy the behaviour script values into this object.
|
java.lang.String |
validateScript()
Validate the whole script and return a description of any errors.
|
protected java.lang.String |
validateVariable(java.lang.String varType)
Validate the script variable and return a description if invalid.
|
public java.lang.String solverType
SolverConst
.GRIDMATCH
or GRIDHILL
, for example.public int maxSolutionNum
public double rangeValue
public boolean similarityRangeAsPercentage
public TestRunsScript testRunsScript
public ProblemScript(org.licas.PasswordHandler thePasswordHandler)
thePasswordHandler
- for storing passwords.public boolean convertForInitialise() throws java.lang.Exception
java.lang.Exception
- any error.public void copy(org.licas.service.spec.BehaviourScript behaviourScript)
behaviourScript
- the behaviour script.public java.lang.String validateScript()
validateScript
in class org.licas.service.spec.BehaviourScript
protected java.lang.String validateVariable(java.lang.String varType)
validateVariable
in class org.licas.service.spec.BehaviourScript
varType
- the variable type.