public abstract class SolverMetrics
extends java.lang.Object
SolverFactory
from where it is accessed and used.Modifier and Type | Field and Description |
---|---|
protected static java.util.ArrayList |
solverModules
List of modules automatically loaded in during startup.
|
Constructor and Description |
---|
SolverMetrics(java.util.ArrayList theSolverModules)
Create a new instance of SolverMetrics.
|
Modifier and Type | Method and Description |
---|---|
abstract org.ai_heuristic.functs.Function |
getEvaluationFunction(java.lang.String valueType,
java.lang.String functionType)
Create and return the correct function/metric for the input parameters.
|
abstract org.ai_heuristic.functs.Function |
getEvaluationFunction(java.lang.String valueType,
java.lang.String functionType,
org.ai_heuristic.def.EvaluateMathDef evaluateService,
java.util.HashMap configParams)
Create and return the correct function/metric for the input parameters.
|
protected static java.util.ArrayList solverModules
ModuleSolverFactory
.public SolverMetrics(java.util.ArrayList theSolverModules)
theSolverModules
- list of solver modules.public abstract org.ai_heuristic.functs.Function getEvaluationFunction(java.lang.String valueType, java.lang.String functionType) throws java.lang.Exception
valueType
- the type of object being evaluated.functionType
- the type of function to create.java.lang.Exception
- any error.public abstract org.ai_heuristic.functs.Function getEvaluationFunction(java.lang.String valueType, java.lang.String functionType, org.ai_heuristic.def.EvaluateMathDef evaluateService, java.util.HashMap configParams) throws java.lang.Exception
Function
.createFunction
in the first instance and tries to configure it.valueType
- the type of object being evaluated.functionType
- the type of function to create.evaluateService
- the evaluator. Can be null for a default evaluator.configParams
- a list of any input configuration parameters. Can be null for no parameters.java.lang.Exception
- any error.