public class DefaultSolverMediators extends SolverMediators
DefaultSolverFactory from where it is accessed and used.passwordHandler, serviceMediator, solverModules| Constructor and Description |
|---|
DefaultSolverMediators(org.licas.PasswordHandler thePasswordHandler,
java.util.ArrayList theSolverModules)
Create a new instance of DefaultSolverMediators.
|
| Modifier and Type | Method and Description |
|---|---|
org.licas.service.ServiceMediator |
createServiceMediator(java.lang.String solverType)
Create and return the appropriate service mediator for the problem type.
|
ProblemMediator |
getProblemMediator(java.lang.String solverType,
java.lang.String heuristicType)
Get the problem specification object related to the current problem type.
|
org.licas.service.ServiceMediator |
getServiceMediator()
Get the currently created service mediator.
|
Evaluator |
getSolverFrameworkMediator(java.lang.String solverType,
java.lang.String heuristicType)
Create and return the appropriate mediator for the current problem type.
|
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.
|
public DefaultSolverMediators(org.licas.PasswordHandler thePasswordHandler,
java.util.ArrayList theSolverModules)
thePasswordHandler - the password handler.theSolverModules - list of solver modules.public void setServiceMediator(org.licas.service.ServiceMediator theServiceMediator)
setServiceMediator in class SolverMediatorstheServiceMediator - the service mediator.public org.licas.service.ServiceMediator getServiceMediator()
getServiceMediator in class SolverMediatorspublic org.licas.service.ServiceMediator createServiceMediator(java.lang.String solverType)
throws java.lang.Exception
SolverMediators.createServiceMediator in class SolverMediatorssolverType - the type of test framework to solve the problem.java.lang.Exception - any error.public TestDef getTestMediator(java.lang.String solverType, java.lang.String serviceType) throws java.lang.Exception
getTestMediator in class SolverMediatorssolverType - 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 Evaluator getSolverFrameworkMediator(java.lang.String solverType, java.lang.String heuristicType)
GridEvaluator or a
LinkEvaluator.getSolverFrameworkMediator in class SolverMediatorssolverType - the type of test framework to solve the problem.heuristicType - the heuristic or problem-solving type.public ProblemMediator getProblemMediator(java.lang.String solverType, java.lang.String heuristicType)
getProblemMediator in class SolverMediatorssolverType - the type of test framework to solve the problem.heuristicType - the heuristic or problem-solving type, for example,
HeuristicConst.GENETICALGORITHM or FREQUENCY.