public class FieldRef extends Expression
| Constructor and Description |
|---|
FieldRef(Element fieldRef,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs) |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getOutputDef()
Return the structure of the result of applying this Expression
as an Attribute.
|
double |
getResult(double[] incoming)
Get the result of evaluating the expression.
|
String |
getResultCategorical(double[] incoming)
Gets the result of evaluating the expression when the
optype is categorical or ordinal as the actual String
value.
|
void |
setFieldDefs(ArrayList<Attribute> fieldDefs)
Set the field definitions for this Expression to use
|
String |
toString(String pad) |
getExpression, getExpression, getFieldDef, getFieldDefIndex, getOptype, getResultContinuous, toStringpublic void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception
ExpressionsetFieldDefs in class ExpressionfieldDefs - the field definitions to useException - if there is a problem setting the field definitionspublic double getResult(double[] incoming)
throws Exception
ExpressiongetResult in class Expressionincoming - the incoming parameter valuesException - if there is a problem computing the resultpublic String getResultCategorical(double[] incoming) throws Exception
ExpressiongetResultCategorical in class Expressionincoming - the incoming parameter valuesException - if the optype is continuouspublic Attribute getOutputDef()
public String toString(String pad)
toString in class ExpressionCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.