Class ASTPtUnaryNode


  • public class ASTPtUnaryNode
    extends LatticeOntologyASTNodeAdapter
    The default adapter class for ptolemy.data.expr.ASTPtUnaryNode.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Charles Shelton
    Pt.AcceptedRating:
    Red (cshelton)
    Pt.ProposedRating:
    Red (cshelton)
    • Method Detail

      • constraintList

        public java.util.List<Inequality> constraintList()
                                                  throws IllegalActionException
        Return the constraint list for the adapter. A Unary node in the Ptolemy expression language is a node with a single child node and an operator that is either a negation (-), a logical not (!), or a bitwise not (~). This ontology constraint supports using the concept functions for the negation and logical not operations if they are defined in the LatticeOntologySolver's model. If the concept functions are not defined or the operation is bitwise not, then the constraint is just between the node and its child node.
        Overrides:
        constraintList in class LatticeOntologyASTNodeAdapter
        Returns:
        The list of constraints for this adapter.
        Throws:
        IllegalActionException - If there is an error building the constraint list.