Class ASTPtUnaryNode
- java.lang.Object
-
- ptolemy.data.ontologies.OntologyAdapter
-
- ptolemy.data.ontologies.lattice.LatticeOntologyAdapter
-
- ptolemy.data.ontologies.lattice.LatticeOntologyASTNodeAdapter
-
- ptolemy.data.ontologies.lattice.adapters.defaultAdapters.data.expr.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)
-
-
Field Summary
-
Fields inherited from class ptolemy.data.ontologies.lattice.LatticeOntologyAdapter
_ownConstraints, _subAdapterConstraints, _useDefaultConstraints, interconnectConstraintType
-
Fields inherited from class ptolemy.data.ontologies.OntologyAdapter
_annotationEvaluator, _solver
-
-
Constructor Summary
Constructors Constructor Description ASTPtUnaryNode(LatticeOntologySolver solver, ASTPtUnaryNode node)
Construct an property constraint adapter for the given ASTPtUnaryNode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Inequality>
constraintList()
Return the constraint list for the adapter.-
Methods inherited from class ptolemy.data.ontologies.lattice.LatticeOntologyASTNodeAdapter
_getChildNodeTerms, _getNode, _getSubAdapters, getNamedObject, getPropertyables
-
Methods inherited from class ptolemy.data.ontologies.lattice.LatticeOntologyAdapter
_addDefaultConstraints, _addSubAdapterConstraints, _annotationEvaluator, _constrainAttributes, _constrainObject, _constrainObjectLists, _constrainSingleObject, _getConstrainedPorts, _getConstraintingPorts, _setConnectionConstraintType, _union, getPropertyTerm, getSolver, isConstraintSource, reinitialize, setAtLeast, setAtMost, setSameAs
-
Methods inherited from class ptolemy.data.ontologies.OntologyAdapter
_getASTNodeAdapters, _getAttributeParseTrees, _getPropertyableAttributes, _getSinkPortList, _getSourcePortList, getComponent, getContainerEntity, getName, getParseTree, putAttribute, setComponent, setEquals, toString
-
-
-
-
Constructor Detail
-
ASTPtUnaryNode
public ASTPtUnaryNode(LatticeOntologySolver solver, ASTPtUnaryNode node) throws IllegalActionException
Construct an property constraint adapter for the given ASTPtUnaryNode.- Parameters:
solver
- The given solver to get the lattice from.node
- The given ASTPtUnaryNode.- Throws:
IllegalActionException
- Thrown if the parent construct throws it.
-
-
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 classLatticeOntologyASTNodeAdapter
- Returns:
- The list of constraints for this adapter.
- Throws:
IllegalActionException
- If there is an error building the constraint list.
-
-