Package ptolemy.actor

Examples of ptolemy.actor.Actor.outputPortList()


        List actorList = compositeActor.deepEntityList();
        ListIterator actors = actorList.listIterator();

        while (actors.hasNext()) {
            Actor actor = (Actor) actors.next();
            List outputPortList = actor.outputPortList();
            Iterator outputPorts = outputPortList.iterator();

            while (outputPorts.hasNext()) {
                IOPort port = (IOPort) outputPorts.next();
                Parameter initialValueParameter = (Parameter) ((NamedObj) port)
View Full Code Here


                        .intValue();
                if ((inputDepth < depth) || (depth == -1)) {
                    depth = inputDepth;
                }
            }
            Iterator outputs = actor.outputPortList().iterator();
            while (outputs.hasNext()) {
                IOPort outputPort = (IOPort) outputs.next();
                int outputDepth = ((Integer) _portToDepth.get(outputPort))
                        .intValue();
                if ((outputDepth < depth) || (depth == -1)) {
View Full Code Here

            // Find the set of the ports that need depths adjusted.
            List inputPorts;
            if (ioPort.isInput()) {
                boolean depthNeedsAdjusted = false;
                int numberOfOutputPorts = portContainer.outputPortList().size();
                // If an actor has no output ports, adjustment is necessary.
                if (numberOfOutputPorts == 0) {
                    depthNeedsAdjusted = true;
                }
                // If the actor declares itself as a strict actor,
View Full Code Here

                        IOPort port = (IOPort) inputPorts.next();
                        int rate = DFUtilities.getRate(port);
                        _updatePortOffset(port, code, rate);
                    }

                    Iterator outputPorts = actor.outputPortList().iterator();
                    while (outputPorts.hasNext()) {
                        IOPort port = (IOPort) outputPorts.next();
                        int rate = DFUtilities.getRate(port);
                        _updateConnectedPortsOffset(port, code, rate);
                    }
View Full Code Here

                    IOPort port = (IOPort) inputPorts.next();
                    int rate = DFUtilities.getRate(port);
                    _updatePortOffset(port, code, rate);
                }

                Iterator outputPorts = actor.outputPortList().iterator();
                while (outputPorts.hasNext()) {
                    IOPort port = (IOPort) outputPorts.next();
                    int rate = DFUtilities.getRate(port);
                    _updateConnectedPortsOffset(port, code, rate);
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.