public class DataQueryModel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.ai_heuristic.eval.metric.MetricDataset |
dataSet
Dataset or object to evaluate
|
protected java.lang.String |
dataType
The data type
|
protected java.lang.String |
functionClass
Comparison evaluator class name, so that it can be created
|
protected java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
params
Any other parameters as key-value pairs.
|
Constructor and Description |
---|
DataQueryModel()
Create a new instance of DataQueryModel
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Return a deep clone this object.
|
org.ai_heuristic.functs.Function |
distanceFunction()
Create the math comparison object from the stored class name.
|
org.ai_heuristic.eval.metric.MetricDataset |
getDataset()
Get the dataset object.
|
java.lang.String |
getDataType()
Get the data type for the data object to be evaluated.
|
java.lang.String |
getFunctionClass()
Get the class name of the math evaluator.
|
java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
getParams()
Get the additional parameters list.
|
static boolean |
isDataQuery(java.lang.Object dataObj)
Return true if the data object is an instance of a known data query type.
|
void |
setDataset(org.ai_heuristic.eval.metric.MetricDataset thisDataSet)
Set the dataset object.
|
void |
setDataType(java.lang.String thisDataType)
Set the data type.
|
void |
setFunctionClass(java.lang.String functionClassname)
Set the class name of the evaluator.
|
void |
setParams(java.util.LinkedHashMap<java.lang.String,java.lang.Object> theParams)
Set the additional parameters list.
|
protected java.lang.String dataType
protected org.ai_heuristic.eval.metric.MetricDataset dataSet
protected java.lang.String functionClass
protected java.util.LinkedHashMap<java.lang.String,java.lang.Object> params
public org.ai_heuristic.functs.Function distanceFunction() throws java.lang.Exception
LoadObject
, with an
empty constructor.java.lang.Exception
- any error.public void setFunctionClass(java.lang.String functionClassname)
FunctionMetricDef
interface, so that its method list is known.functionClassname
- the evaluator class name.public java.lang.String getFunctionClass()
public void setDataType(java.lang.String thisDataType)
thisDataType
- the data type.public java.lang.String getDataType()
public void setDataset(org.ai_heuristic.eval.metric.MetricDataset thisDataSet)
thisDataSet
- the dataset object.public org.ai_heuristic.eval.metric.MetricDataset getDataset()
public void setParams(java.util.LinkedHashMap<java.lang.String,java.lang.Object> theParams)
theParams
- the additional parameters as key-value pairs.public java.util.LinkedHashMap<java.lang.String,java.lang.Object> getParams()
public static boolean isDataQuery(java.lang.Object dataObj)
dataObj
- the data object.DataQueryModel
or a ComparisonQueryModel
.public java.lang.Object clone()
clone
in class java.lang.Object