Class LatticeOntologyASTNodeAdapter

    • Constructor Detail

      • LatticeOntologyASTNodeAdapter

        public LatticeOntologyASTNodeAdapter​(LatticeOntologySolver solver,
                                             ASTPtRootNode node)
                                      throws IllegalActionException
        Construct the property constraint adapter associated with the given AST node.
        Parameters:
        solver - The lattice-based ontology solver for this adapter
        node - The given AST node
        Throws:
        IllegalActionException - Thrown if LatticeOntologyASTNodeAdapter(NamedObj, ASTPtRootNode, boolean) throws it.
      • LatticeOntologyASTNodeAdapter

        public LatticeOntologyASTNodeAdapter​(LatticeOntologySolver solver,
                                             ASTPtRootNode node,
                                             boolean useDefaultConstraints)
                                      throws IllegalActionException
        Construct the property constraint adapter for the given property solver and AST node.
        Parameters:
        solver - The lattice-based ontology solver for this adapter
        node - The given AST node
        useDefaultConstraints - Indicate whether this adapter uses the default actor constraints
        Throws:
        IllegalActionException - If the adapter cannot be initialized.
    • Method Detail

      • getNamedObject

        public static NamedObj getNamedObject​(Entity container,
                                              java.lang.String name)
        Returns the component referenced by the given name in the given container.
        Parameters:
        container - The container in which to find the component
        name - The name of the component
        Returns:
        The NamedObj component referred to by the name found in the container, or null if it is not found
      • getPropertyables

        public java.util.List<java.lang.Object> getPropertyables()
        Return a list of property-able NamedObj contained by the component. All ports and parameters are considered property-able.
        Overrides:
        getPropertyables in class OntologyAdapter
        Returns:
        The list of property-able named object.
      • _getChildNodeTerms

        protected InequalityTerm[] _getChildNodeTerms()
        Return an array of all the inequality terms for the child nodes to this product node.
        Returns:
        The array of inequality terms for the child nodes.
      • _getNode

        protected ASTPtRootNode _getNode()
        Return the node this adapter references.
        Returns:
        The node referred to by this adapter