public class SolverMetrics
extends java.lang.Object
DefaultSolverMetrics
class of the problem solver is extendable with external packages.Constructor and Description |
---|
SolverMetrics()
Create a new instance of SolverMetrics.
|
Modifier and Type | Method and Description |
---|---|
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.
|
org.ai_heuristic.functs.Function |
getEvaluationFunction(java.lang.String valueType,
java.lang.String functionType,
EvaluateData evaluator,
java.util.HashMap<java.lang.String,?> configParams)
Create and return the correct function/metric for the input parameters.
|
public 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 org.ai_heuristic.functs.Function getEvaluationFunction(java.lang.String valueType, java.lang.String functionType, EvaluateData evaluator, java.util.HashMap<java.lang.String,?> 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.evaluator
- 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.