public class ServiceSpec
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<java.lang.Object> |
constructorParams
Parameters to initialise the base service with.
|
boolean |
createServices
If true create the services on the specified server, if false test without services
|
java.util.ArrayList<java.lang.String> |
dataConditions
List of conditions under which data can be generated or read.
|
java.lang.String |
datasetType
The type of dataset to use
|
java.lang.String |
dirPath
The directory to read the files from
|
java.lang.String |
externalScript
The file path to read an external script from
|
java.util.HashMap<java.lang.String,java.lang.Object> |
heuristicOptions
A list of different heuristic options.
|
java.lang.String |
heuristicType
The type of heuristic to use.
|
java.util.HashMap<java.lang.String,java.lang.Object> |
inputVariables
Arbitrary list of key-value pairs for processing in solutions.
|
LinkSpec |
linkSpec
Linking specification
|
java.lang.String |
metricType
The type of metric to use, for example.
AiHeuristicConst .EUCLIDEANFUNCTION . |
ServerSpec |
serverSpec
Server config specification
|
java.util.HashMap<java.lang.String,java.lang.String> |
serviceClasses
Service classes.
|
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
serviceJarFiles
Service jar files.
|
int |
servicesNum
Number of services or solutions - also the initial number to create
|
java.lang.String |
serviceType
The test service type
|
java.lang.String |
tokenizer
The character to separate dataset values
|
Constructor and Description |
---|
ServiceSpec(PasswordHandler thePasswordHandler)
Create a new instance of ServiceSpec.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
parseProblemDataset(java.lang.String datasetType,
org.licas_xml.abs.Element dataXml)
Parse a problem dataset in XML format to create the associated 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 datasetType
public java.lang.String dirPath
public java.lang.String tokenizer
public int servicesNum
public boolean createServices
public java.util.HashMap<java.lang.String,java.lang.String> serviceClasses
public java.util.ArrayList<java.lang.Object> constructorParams
public java.lang.String heuristicType
public java.lang.String metricType
AiHeuristicConst
.EUCLIDEANFUNCTION
.
This defines the evaluation function that the problem-solving heuristic should use.public java.lang.String serviceType
public java.util.ArrayList<java.lang.String> dataConditions
public java.util.HashMap<java.lang.String,java.lang.Object> heuristicOptions
public java.util.HashMap<java.lang.String,java.lang.Object> inputVariables
public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> serviceJarFiles
public java.lang.String externalScript
public LinkSpec linkSpec
public ServerSpec serverSpec
public ServiceSpec(PasswordHandler thePasswordHandler)
thePasswordHandler
- for storing passwords.public java.lang.String validateScript()
protected java.lang.String validateVariable(java.lang.String varType)
varType
- the variable type.public java.lang.Object parseProblemDataset(java.lang.String datasetType, org.licas_xml.abs.Element dataXml) throws java.lang.Exception
datasetType
- the type of dataset to be parsed.dataXml
- the dataset description in XML.java.lang.Exception
- any error.