Examples of connectedPortList()


Examples of ptolemy.actor.IOPort.connectedPortList()

            } else {
                ports = ((Actor) actor).inputPortList().iterator();
            }
            while (ports.hasNext()) {
                IOPort port = (IOPort) ports.next();
                Iterator connectedPorts = port.connectedPortList().iterator();
                while (connectedPorts.hasNext()) {
                    IOPort otherPort = (IOPort) connectedPorts.next();
                    // Skip ports with the same polarity (input or output)
                    // as the current port.
                    if (port.isInput() && !otherPort.isOutput()
View Full Code Here

Examples of ptolemy.actor.IOPort.connectedPortList()

                _connectedOutsideOfBoundaryCacheIsOn = false;
                _isConnectedOutsideOfBoundaryValue = false;
                return _isConnectedOutsideOfBoundaryValue;
            }

            Iterator ports = contPort.connectedPortList().iterator();

            while (ports.hasNext()) {
                IOPort connectedPort = (IOPort) ports.next();
                ComponentEntity connectedEntity = (ComponentEntity) connectedPort
                        .getContainer();
View Full Code Here

Examples of ptolemy.actor.IOPort.connectedPortList()

                if (currentPort.isInput()) {
                    receivers = currentPort.getReceivers();
                }

                if (!currentPort.connectedPortList().isEmpty()) {
                    portTypes.put(currentPort.getName(),
                            ((TypedIOPort) currentPort).getType());
                }

                if (receivers.length > 0) {
View Full Code Here

Examples of ptolemy.actor.IOPort.connectedPortList()

            } else {
                ports = ((Actor) actor).inputPortList().iterator();
            }
            while (ports.hasNext()) {
                IOPort port = (IOPort) ports.next();
                Iterator connectedPorts = port.connectedPortList().iterator();
                while (connectedPorts.hasNext()) {
                    IOPort otherPort = (IOPort) connectedPorts.next();
                    // Skip ports with the same polarity (input or output)
                    // as the current port.
                    if (port.isInput() && !otherPort.isOutput()
View Full Code Here

Examples of ptolemy.kernel.ComponentPort.connectedPortList()

                                newPort.setOutput(castPort.isOutput());
                            }

                            // Set up inside connections.
                            // Do this only if they are not already connected.
                            List connectedPorts = insidePort
                                    .connectedPortList();

                            if (!connectedPorts.contains(newPort)) {
                                ComponentRelation relation = newRelation(uniqueName("relation"));
                                newPort.link(relation);
View Full Code Here

Examples of ptolemy.kernel.Port.connectedPortList()

                                castPort
                                        .setAssociatedPort((MirrorPort) insidePort);
                            }

                            // Create a link only if it doesn't already exist.
                            List connectedPorts = insidePort
                                    .connectedPortList();

                            if (!connectedPorts.contains(castPort)) {
                                // There is no connection. Create one.
                                ComponentRelation newRelation = newRelation(uniqueName("relation"));
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.