public class FieldRef extends Expression
| Constructor and Description |
|---|
FieldRef(org.w3c.dom.Element fieldRef,
FieldMetaInfo.Optype opType,
java.util.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.
|
java.lang.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(java.util.ArrayList<Attribute> fieldDefs)
Set the field definitions for this Expression to use
|
java.lang.String |
toString(java.lang.String pad) |
getExpression, getExpression, getFieldDef, getFieldDefIndex, getOptype, getResultContinuous, toStringpublic FieldRef(org.w3c.dom.Element fieldRef,
FieldMetaInfo.Optype opType,
java.util.ArrayList<Attribute> fieldDefs)
throws java.lang.Exception
java.lang.Exceptionpublic void setFieldDefs(java.util.ArrayList<Attribute> fieldDefs) throws java.lang.Exception
ExpressionsetFieldDefs in class ExpressionfieldDefs - the field definitions to usejava.lang.Exception - if there is a problem setting the field definitionspublic double getResult(double[] incoming)
throws java.lang.Exception
ExpressiongetResult in class Expressionincoming - the incoming parameter valuesjava.lang.Exception - if there is a problem computing the resultpublic java.lang.String getResultCategorical(double[] incoming)
throws java.lang.Exception
ExpressiongetResultCategorical in class Expressionincoming - the incoming parameter valuesjava.lang.Exception - if the optype is continuouspublic Attribute getOutputDef()
public java.lang.String toString(java.lang.String pad)
toString in class Expression