public abstract class FunctionSingle extends Function implements FunctionSingleDef
MetricDataset
dataset only.config, mathCompare, valueType
Constructor and Description |
---|
FunctionSingle()
Create a new instance of FunctionSingle.
|
FunctionSingle(java.lang.String thisValueType)
Create a new instance of FunctionSingle.
|
FunctionSingle(java.lang.String thisValueType,
java.util.HashMap<java.lang.String,?> thisConfig)
Create a new instance of FunctionSingle.
|
Modifier and Type | Method and Description |
---|---|
abstract ReplySet |
evaluate(MetricDataset dataset)
Return a value based on the function evaluation.
|
protected ReplySet |
evaluateSingle(MetricDataset dataset)
Return a value based on the function evaluation.
|
checkValueType, createFunction, createFunction, createFunction, getConfigParams, initialise, innerObject, isLegalNumber, setConfigParams, setEvaluator, setValueType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newInstance
public FunctionSingle() throws java.lang.Exception
eval
evaluator is set to SimpleMathCompare
.
To change this, use the setEvaluator
method.java.lang.Exception
- any error.public FunctionSingle(java.lang.String thisValueType) throws java.lang.Exception
eval
evaluator is set to SimpleMathCompare
.
To change this, use the setEvaluator
method.thisValueType
- the type of object being evaluated. Can be null if set later or not used.java.lang.Exception
- any error.public FunctionSingle(java.lang.String thisValueType, java.util.HashMap<java.lang.String,?> thisConfig) throws java.lang.Exception
eval
evaluator is set to SimpleMathCompare
.
To change this, use the setEvaluator
method.thisValueType
- the type of object being evaluated. Can be null if set later or not used.thisConfig
- list of initialisation function-specific parameters.java.lang.Exception
- any error.public abstract ReplySet evaluate(MetricDataset dataset) throws java.lang.Exception
evaluate
in interface FunctionDef
evaluate
in class Function
dataset
- a dataset with the value to evaluate.java.lang.Exception
- any error.protected ReplySet evaluateSingle(MetricDataset dataset) throws java.lang.Exception
dataset
- a dataset with the value to evaluate.java.lang.Exception
- any error.