Package com.nt.udc.io
Class COSARExprRelationalNumOp
java.lang.Object
com.nt.udc.io.COSARExpr
com.nt.udc.io.COSARExprRelationalNumOp
- Direct Known Subclasses:
COSARExprEQ,COSARExprGE,COSARExprGT,COSARExprLE,COSARExprLT,COSARExprNE
This class represents a numeric relational operation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected COSARExprThis member represents the left operand.protected COSARExprThis member represents the right operand.Fields inherited from class com.nt.udc.io.COSARExpr
m_bIsConstant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis function is used to evaluate the expression.protected abstract intgetComputedValue(double val1, double val2) This function does the actual computation.protected abstract StringThis function returns a string representation of the operation.toString()Methods inherited from class com.nt.udc.io.COSARExpr
isConstant
-
Field Details
-
m_left
This member represents the left operand. -
m_right
This member represents the right operand.
-
-
Constructor Details
-
COSARExprRelationalNumOp
- Throws:
Exception
-
-
Method Details
-
eval
Description copied from class:COSARExprThis function is used to evaluate the expression. A symbol table is passed to help in retrieving the value of referenced symbols. The HashMap should contain values stored as COSARAttr objects, keyed by their associated symbol's name. -
toString
-
getComputedValue
protected abstract int getComputedValue(double val1, double val2) This function does the actual computation. -
getOpString
This function returns a string representation of the operation.
-