public abstract class SolverFactory
extends java.lang.Object
SolverFactory.setSolverFactory
.Modifier and Type | Field and Description |
---|---|
protected org.licas.PasswordHandler |
passwordHandler
The password handler
|
protected SolverData |
solverData |
protected SolverHeuristics |
solverHeuristic |
protected SolverMediators |
solverMediator |
protected org.licas.service.sci.SolverMetrics |
solverMetric
Solver Factory methods lists
|
protected static java.util.ArrayList<ModuleSolverFactory> |
solverModules
List of modules automatically loaded in during startup.
|
protected SolverSpecs |
solverSpec |
Constructor and Description |
---|
SolverFactory(org.licas.PasswordHandler thePasswordHandler)
Create a new instance of SolverFactory.
|
Modifier and Type | Method and Description |
---|---|
void |
addSolverModule(ModuleSolverFactory solverModule)
Add a solver module to the list of modules.
|
static java.lang.String |
checkGeneticDatasetHeuristic(java.lang.String datasetType)
For backwards compatibility, the dataset type has been used to describe a
genetic algorithm heuristic.
|
static java.lang.String |
checkHeuristic(java.lang.String valueName)
For backwards compatibility, the object type has been used to describe a
previous version of the script.
|
static SolverFactory |
getInstance()
Get the created instance of the analysis model factory.
|
static java.lang.String |
getServiceType(java.lang.String serviceClass)
Get an appropriate service type from the service class.
|
SolverData |
getSolverData()
Get the solver factory data methods.
|
SolverHeuristics |
getSolverHeuristics()
Get the solver factory heuristic methods.
|
SolverMediators |
getSolverMediators()
Get the solver factory mediator methods.
|
org.licas.service.sci.SolverMetrics |
getSolverMetrics()
Get the solver factory metrics methods.
|
SolverSpecs |
getSolverSpecs()
Get the solver factory specification methods.
|
boolean |
hasSolverData()
Return true if the factory has a solver data implementation.
|
boolean |
hasSolverHeuristics()
Return true if the factory has a solver heuristics implementation.
|
boolean |
hasSolverMediators()
Return true if the factory has a solver mediator implementation.
|
boolean |
hasSolverMetrics()
Return true if the factory has a solver metrics implementation.
|
boolean |
hasSolverSpecs()
Return true if the factory has a solver specification implementation.
|
void |
setSolverData(SolverData theSolverData)
Set the solver factory data.
|
static void |
setSolverFactory(SolverFactory thisSolverFactory)
Set the instance of the solver factory to be used.
|
void |
setSolverHeuristics(SolverHeuristics theSolverHeuristic)
Set the solver factory heuristics.
|
void |
setSolverMediators(SolverMediators theSolverMediator)
Set the solver factory mediators.
|
void |
setSolverMetrics(org.licas.service.sci.SolverMetrics theSolverMetric)
Set the solver factory metrics.
|
void |
setSolverSpecs(SolverSpecs theSolverSpec)
Set the solver factory specification.
|
protected org.licas.PasswordHandler passwordHandler
protected org.licas.service.sci.SolverMetrics solverMetric
protected SolverHeuristics solverHeuristic
protected SolverData solverData
protected SolverSpecs solverSpec
protected SolverMediators solverMediator
protected static java.util.ArrayList<ModuleSolverFactory> solverModules
ModuleSolverFactory
.public SolverFactory(org.licas.PasswordHandler thePasswordHandler)
thePasswordHandler
- the password handler.public static SolverFactory getInstance()
public static void setSolverFactory(SolverFactory thisSolverFactory)
thisSolverFactory
- the solver factory to use.public boolean hasSolverMetrics()
public boolean hasSolverHeuristics()
public boolean hasSolverData()
public boolean hasSolverSpecs()
public boolean hasSolverMediators()
public void setSolverMetrics(org.licas.service.sci.SolverMetrics theSolverMetric)
theSolverMetric
- the solver metrics description.public org.licas.service.sci.SolverMetrics getSolverMetrics()
public void setSolverHeuristics(SolverHeuristics theSolverHeuristic)
theSolverHeuristic
- the solver heuristics description.public SolverHeuristics getSolverHeuristics()
public void setSolverData(SolverData theSolverData)
theSolverData
- the solver data description.public SolverData getSolverData()
public void setSolverSpecs(SolverSpecs theSolverSpec)
theSolverSpec
- the solver spec description.public SolverSpecs getSolverSpecs()
public void setSolverMediators(SolverMediators theSolverMediator)
theSolverMediator
- the solver mediators description.public SolverMediators getSolverMediators()
public void addSolverModule(ModuleSolverFactory solverModule)
solverModule
- the solver module to add.public static java.lang.String getServiceType(java.lang.String serviceClass)
serviceClass
- the full java class name.public static java.lang.String checkHeuristic(java.lang.String valueName)
valueName
- the object type name.valueName
.public static java.lang.String checkGeneticDatasetHeuristic(java.lang.String datasetType)
datasetType
- the dataset type name.datasetType
.