public class ParseTreeConstraintAnnotationEvaluator extends ParseTreeAnnotationEvaluator
ASTPtRootNode
Red (mankit) |
Red (mankit) |
_adapter, _evaluatedObject
Constructor and Description |
---|
ParseTreeConstraintAnnotationEvaluator() |
Modifier and Type | Method and Description |
---|---|
void |
visitLeafNode(ASTPtLeafNode node)
visitLeafNode method is called when parsing an Annotation for a manual constraint.
12/16/09 Charles Shelton
This visitLeafNode method assumes the node will refer to either a component
in the model or a Concept in the ontology.
|
void |
visitRelationalNode(ASTPtRelationalNode node)
Visit the relational node when parsing a user-defined manual constraint
doe the LatticeOntologySolver.
|
_getNodeLabel, _unsupportedVisitException, evaluate, visitAssignmentNode, visitMethodCallNode
_visitAllChildren, _visitChild, visitArrayConstructNode, visitBitwiseNode, visitFunctionalIfNode, visitFunctionApplicationNode, visitFunctionDefinitionNode, visitLogicalNode, visitMatrixConstructNode, visitPowerNode, visitProductNode, visitRecordConstructNode, visitShiftNode, visitSumNode, visitUnaryNode, visitUnionConstructNode
public ParseTreeConstraintAnnotationEvaluator()
public void visitLeafNode(ASTPtLeafNode node) throws IllegalActionException
visitLeafNode
in interface ParseTreeVisitor
visitLeafNode
in class ParseTreeAnnotationEvaluator
node
- The leaf node to be visitedIllegalActionException
- If the node label cannot be resolved to a
component in the modelpublic void visitRelationalNode(ASTPtRelationalNode node) throws IllegalActionException
visitRelationalNode
in interface ParseTreeVisitor
visitRelationalNode
in class AbstractParseTreeVisitor
node
- The relational node to be visitedIllegalActionException
- If the operator is not supported (should be
one of '==', '≥', or '≤')