Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.NamedObj


                    // as the current port.
                    if (port.isInput() && !otherPort.isOutput()
                            || port.isOutput() && !otherPort.isInput()) {
                        continue;
                    }
                    NamedObj higherActor = otherPort.getContainer();
                    _addHighlights(higherActor, moml, visited, forward, clear);
                }
            }
        }
    }
View Full Code Here


        public void actionPerformed(ActionEvent e) {
            // Determine which entity was selected for the create instance action.
            super.actionPerformed(e);

            NamedObj actor = getTarget();
            StringBuffer moml = new StringBuffer("<group>");
            HashSet<NamedObj> visited = new HashSet<NamedObj>();
            _addHighlights(actor, moml, visited, _forward, _clear);
            moml.append("</group>");
            actor.requestChange(new MoMLChangeRequest(this, actor
                    .getContainer(), moml.toString()));
        }
View Full Code Here

        /** Return the list of identifiers within the scope.
         *  @return The list of variable names within the scope.
         */
        public Set identifierSet() {
            PSDFDirector director = (PSDFDirector) getContainer();
            NamedObj reference = director.getContainer();
            return getAllScopedVariableNames(null, reference);
        }
View Full Code Here

        for (Iterator names = getDestinationNameList().iterator(); names
                .hasNext();) {
            String name = (String) names.next();

            try {
                NamedObj object = getDestination(name);

                if (object instanceof Typeable) {
                    InequalityTerm term = ((Typeable) object).getTypeTerm();
                    list.add(new Inequality(new TypeFunction(name), term));
                }
View Full Code Here

                Iterator destinationNames = _destinationNames.iterator();

                while (destinationNames.hasNext()) {
                    String destinationName = (String) destinationNames.next();
                    NamedObj destination = _getDestination(destinationName);
                    _destinations.add(destination);
                }
            }

            _destinationsListVersion = workspace().getVersion();
View Full Code Here

     @see #getURI()
     */
    public void setURI(URI uri) throws IllegalActionException {
        _value = uri;

        NamedObj container = getContainer();

        if (container != null) {
            container.attributeChanged(this);
        }
    }
View Full Code Here

                throw new InternalErrorException(this, ex2,
                        "Error constructing URI from " + url);
            }
        }

        NamedObj container = getContainer();

        if (container != null) {
            container.attributeChanged(this);
        }
    }
View Full Code Here

        String type = tokenString.substring(5, 7);

        // The "00" corresponds to Messages of type SurgeMsg (Should be 0x11).
        if (type.equals("00")) {
            // Look for the PtinyOSDirector inside the destination TinyOS node.
            NamedObj wirelessNode = destination.getContainer();
            if (wirelessNode instanceof CompositeEntity) {
                // Note: this relies on the fact that the MicaBoard
                // always contains a MicaCompositeActor
                ComponentEntity micaCompositeActor = ((CompositeEntity) wirelessNode)
                        .getEntity("MicaCompositeActor");
View Full Code Here

            return "";
        }

        // If we get to here, then containee and its
        // container cannot be null.
        NamedObj container = containee.getContainer();
        return "</" + container.getElementName() + ">\n";
    }
View Full Code Here

        super._adjustDeferrals();

        Iterator containedClasses = classDefinitionList().iterator();

        while (containedClasses.hasNext()) {
            NamedObj containedObject = (NamedObj) containedClasses.next();

            if (containedObject instanceof ComponentEntity) {
                ((ComponentEntity) containedObject)._adjustDeferrals();
            }
        }

        Iterator containedEntities = entityList().iterator();

        while (containedEntities.hasNext()) {
            NamedObj containedObject = (NamedObj) containedEntities.next();

            if (containedObject instanceof ComponentEntity) {
                ((ComponentEntity) containedObject)._adjustDeferrals();
            }
        }
View Full Code Here

TOP

Related Classes of ptolemy.kernel.util.NamedObj

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.