public class ReconLinkExpression extends ReconExpression
compiled, expressionTag, infixTokens, reconInfo, rootNode, TOKEN_CONSTANT, TOKEN_DATASET1_FIELD, TOKEN_DATASET2_FIELD, TOKEN_HIGHEST_VALUE, TOKEN_INVALID, TOKEN_LEFT_PARENTHESIS, TOKEN_LOWEST_VALUE, TOKEN_OPERATOR, TOKEN_RIGHT_PARENTHESIS, TOKEN_VALUE, validOperators
Constructor and Description |
---|
ReconLinkExpression(ReconInfo reconInfo)
Constructor sets the ReconInfo class into this class.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
evaluateLinkExpression(ReconValue leadingObject,
SubordinateSetAttribute[] subordinateSetAttributes)
Evaluates the expression, compiling it first if needed.
|
protected java.util.List |
evaluateLinkExpressionTree(BinaryTreeNode root,
ReconValue leadingObject,
SubordinateSetAttribute[] subordinateSetAttributes)
Traverse the binary tree using a recursive algorithm
|
protected void |
readClause(MboRemote clause)
This method reads a clause of a link rule.
|
addExpressionToken, addExpressionToken, compileExpression, convertInfixToExpressionTree, convertTreeToInfixString, findOperator, getAndOrAttributeName, getAttributeSet, getAttributeToUnitMap, getCloseParentheses, getCompiledExpressionAsString, getExpressionTag, getExpressionTag, getOpenParentheses, getSequenceNum, handleLogicalAnd, handleLogicalOperator, handleLogicalOr, popLinkPush, prepareAttributeIndexes, processInfixExpression, processOperatorToken, processRightParenthesisToken, readExpression, readExpression, reset, setExpressionTag, walkTreeReplaceAttributeNamesWithIndexes, walkTreeToGetAttribSet, walkTreeToGetAttribToUnitMap
public ReconLinkExpression(ReconInfo reconInfo)
protected void readClause(MboRemote clause) throws MXException, java.rmi.RemoteException
readClause
in class ReconExpression
MXException
java.rmi.RemoteException
public java.util.List evaluateLinkExpression(ReconValue leadingObject, SubordinateSetAttribute[] subordinateSetAttributes) throws MXException
MXException
protected java.util.List evaluateLinkExpressionTree(BinaryTreeNode root, ReconValue leadingObject, SubordinateSetAttribute[] subordinateSetAttributes) throws MXApplicationException
The pseudocode is
if ( [current node contains an operator] )
x = evaluateTree(root.left_child);
y = evaluateTree(root.right_child);
[Perform operation on x and y, specified by the operator and store result in z]
return z;
else
return root->data;
if (root != null)
MXApplicationException