public abstract class SolverMediators
extends java.lang.Object
SolverFactory from where it is accessed and used.| Modifier and Type | Field and Description |
|---|---|
protected org.licas.PasswordHandler |
passwordHandler
The password handler
|
protected org.licas.service.ServiceMediator |
serviceMediator
The default service mediator to return
|
protected static java.util.ArrayList<ModuleSolverFactory> |
solverModules
List of modules automatically loaded in during startup.
|
| Constructor and Description |
|---|
SolverMediators(org.licas.PasswordHandler thePasswordHandler,
java.util.ArrayList<ModuleSolverFactory> theSolverModules)
Create a new instance of SolverMediators.
|
| Modifier and Type | Method and Description |
|---|---|
abstract org.licas.service.ServiceMediator |
createServiceMediator(java.lang.String solverType)
Create and return the appropriate service mediator for the problem type.
|
abstract ProblemMediator |
getProblemMediator(java.lang.String solverType,
java.lang.String heuristicType)
Get the problem mediator object related to the current problem type.
|
org.licas.service.ServiceMediator |
getServiceMediator()
Get the currently created service mediator.
|
abstract Evaluator |
getSolverFrameworkMediator(java.lang.String solverType,
java.lang.String heuristicType)
Create and return the appropriate mediator for the current problem type.
|
abstract TestDef |
getTestMediator(java.lang.String solverType,
java.lang.String serviceType)
Create and return the appropriate test mediator to execute the services in the framework.
|
void |
setServiceMediator(org.licas.service.ServiceMediator theServiceMediator)
Set the service mediator.
|
protected org.licas.service.ServiceMediator serviceMediator
protected org.licas.PasswordHandler passwordHandler
protected static java.util.ArrayList<ModuleSolverFactory> solverModules
ModuleSolverFactory.public SolverMediators(org.licas.PasswordHandler thePasswordHandler,
java.util.ArrayList<ModuleSolverFactory> theSolverModules)
thePasswordHandler - the password handler.theSolverModules - list of solver modules.public abstract org.licas.service.ServiceMediator createServiceMediator(java.lang.String solverType)
throws java.lang.Exception
SolverMediators.solverType - the type of test framework to solve the problem.java.lang.Exception - any error.public abstract TestDef getTestMediator(java.lang.String solverType, java.lang.String serviceType) throws java.lang.Exception
solverType - the type of test framework to solve the problem.serviceType - the type of services that are created.TestDef class to run and execute the script in
the test loop.java.lang.Exception - any error.public abstract Evaluator getSolverFrameworkMediator(java.lang.String solverType, java.lang.String heuristicType)
solverType - the type of test framework to solve the problem.heuristicType - the heuristic or problem-solving type.public abstract ProblemMediator getProblemMediator(java.lang.String solverType, java.lang.String heuristicType)
solverType - the type of test framework to solve the problem.heuristicType - the heuristic or problem-solving type, for example, simpleHeuristicType,
HeuristicConst.TEXTGENETIC.public void setServiceMediator(org.licas.service.ServiceMediator theServiceMediator)
theServiceMediator - the service mediator.public org.licas.service.ServiceMediator getServiceMediator()