Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.Nameable


                super.setOutput(isOutput);
            } else {
                _mirrorDisable = true;

                boolean success = false;
                Nameable container = getContainer();

                if (container != null) {
                    Nameable modal = container.getContainer();

                    if (modal instanceof MultiCompositeActor) {
                        Port port = ((MultiCompositeActor) modal)
                                .getPort(getName());
View Full Code Here


     *  reflected to the mirror port.
     */
    private void _checkWhetherMirrorIsInput() {
        // Need to check whether there is a containing MultiCompositeActor,
        // and whether its mirror port is also an input.
        Nameable container = getContainer();

        if (container != null) {
            Nameable modal = container.getContainer();

            if (modal instanceof MultiCompositeActor) {
                Port port = ((MultiCompositeActor) modal).getPort(getName());

                if (port instanceof IOPort) {
View Full Code Here

     @exception IllegalActionException If by the executive director.
     */
    public void fireAt(Actor actor, Time time) throws IllegalActionException {
        // Note that the actor parameter is ignored, because it does not
        // matter which actor requests firing.
        Nameable container = getContainer();

        if (container instanceof Actor) {
            Actor modalModel = (Actor) container;
            Director executiveDirector = modalModel.getExecutiveDirector();

View Full Code Here

     @exception NameDuplicationException If the container already has
     *   an attribute with the name of this variable.
     */
    public void setContainer(NamedObj container) throws IllegalActionException,
            NameDuplicationException {
        Nameable previousContainer = getContainer();
        super.setContainer(container);

        if (container != previousContainer) {
            // Every variable that this may shadow in its new location
            // must invalidate all their dependents.
View Full Code Here

     @exception IllegalActionException If the base class throws it.
     *  @exception NameDuplicationException If the base class throws it.
     */
    public void setContainer(CompositeEntity container)
            throws IllegalActionException, NameDuplicationException {
        Nameable previousContainer = getContainer();
        super.setContainer(container);

        if ((container != previousContainer) && (previousContainer != null)) {
            _remove();
        }
View Full Code Here

     @exception IllegalActionException If the base class throws it.
     *  @exception NameDuplicationException If the base class throws it.
     */
    public void setContainer(CompositeEntity container)
            throws IllegalActionException, NameDuplicationException {
        Nameable previousContainer = getContainer();
        super.setContainer(container);

        if ((container != previousContainer) && (previousContainer != null)) {
            _remove();
        }
View Full Code Here

                    _channel = newValue;
                    // If we are within a class definition, then we should
                    // not create any links.  The links should only exist
                    // within instances. Otherwise, we could end up creating
                    // a link between a class definition and an instance.
                    Nameable container = getContainer();
                    if ((container instanceof TypedCompositeActor)) {
                        // NOTE: There used to be some logic here to call
                        // _updateLinks() only if the manager indicates we
                        // are running, and otherwise to set _updatedLinks
                        // to false. This is no longer necessary as
View Full Code Here

                    String entryName = name.substring(period + 1);

                    // FIXME: Look in the container of the fsm???
                    // Below we look for an attribute only in the fsm
                    // itself.
                    Nameable fsmContainer = fsm.getContainer();

                    if (fsmContainer instanceof CompositeEntity) {
                        Entity refinement = ((CompositeEntity) fsmContainer)
                                .getEntity(refinementName);
View Full Code Here

     *  _fireHierarchicalPetriNetOnce() throws exceptions, which can
     *  happen if the method isTransitionReady() or fireTransition()
     throws exceptions.
     */
    public void fire() throws IllegalActionException {
        Nameable container = getContainer();

        if (container instanceof TypedCompositeActor) {
            TypedCompositeActor petriContainer = (TypedCompositeActor) container;
            boolean test = _fireHierarchicalPetriNetOnce(petriContainer);

View Full Code Here

    public LinkedList findTransitions(TypedCompositeActor container) {
        Iterator components = container.entityList().iterator();
        LinkedList temporaryList = new LinkedList();

        while (components.hasNext()) {
            Nameable component = (Nameable) components.next();

            if (component instanceof Place) {
                // Don't do anything for Place
            } else if (component instanceof PetriNetActor) {
                TypedCompositeActor componentActor = (TypedCompositeActor) component;
View Full Code Here

TOP

Related Classes of ptolemy.kernel.util.Nameable

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.