Examples of linkedPortList()


Examples of ptolemy.actor.IORelation.linkedPortList()

            }
        }

        for (int i = 0; i < relations.size(); i++) {
            IORelation relation = (IORelation) (relations.elementAt(i));
            List ports = relation.linkedPortList();
            IOPort inputPort = null;
            Iterator portIter = ports.iterator();

            while (portIter.hasNext()) {
                IOPort port = (IOPort) (portIter.next());
View Full Code Here

Examples of ptolemy.actor.TypedIORelation.linkedPortList()

                            .getRelation(relationName);
                    TypedIOPort port = (TypedIOPort) actor.getPort(portName);
                    if (port == null) {
                        port = new TypedIOPort(actor, actor
                                .uniqueName(portName));
                        inner: for (Object connection : relation
                                .linkedPortList()) {
                            if (connection instanceof TypedIOPort) {
                                TypedIOPort testPort = (TypedIOPort) connection;
                                if (testPort.getContainer().equals(_actor)) {
                                    if (testPort.isInput()) {
View Full Code Here

Examples of ptolemy.actor.TypedIORelation.linkedPortList()

                        TypedIORelation rel = new TypedIORelation(_actor,
                                relationName);
                        if (port == null) {
                            port = new TypedIOPort(actor, actor
                                    .uniqueName(portName));
                            inner: for (Object connection : rel
                                    .linkedPortList()) {
                                if (connection instanceof TypedIOPort) {
                                    TypedIOPort testPort = (TypedIOPort) connection;
                                    if (testPort.getContainer().equals(_actor)) {
                                        if (testPort.isInput()) {
View Full Code Here

Examples of ptolemy.actor.TypedIORelation.linkedPortList()

                        TypedIOPort port = (TypedIOPort) actor
                                .getPort(portName);
                        if (port == null) {
                            port = new TypedIOPort(actor, actor
                                    .uniqueName(portName));
                            inner: for (Object connection : relation
                                    .linkedPortList()) {
                                if (connection instanceof TypedIOPort) {
                                    TypedIOPort testPort = (TypedIOPort) connection;
                                    if (testPort.getContainer().equals(_actor)) {
                                        if (testPort.isInput()) {
View Full Code Here

Examples of ptolemy.actor.TypedIORelation.linkedPortList()

                            TypedIORelation rel = new TypedIORelation(_actor,
                                    relationName);
                            if (port == null) {
                                port = new TypedIOPort(actor, actor
                                        .uniqueName(portName));
                                inner: for (Object connection : rel
                                        .linkedPortList()) {
                                    if (connection instanceof TypedIOPort) {
                                        TypedIOPort testPort = (TypedIOPort) connection;
                                        if (testPort.getContainer().equals(
                                                _actor)) {
View Full Code Here

Examples of ptolemy.kernel.ComponentRelation.linkedPortList()

                                nodes.add(v);
                            }
                        } else {
                            // See if we need to create a vertex.
                            // Count the linked ports.
                            int count = relation.linkedPortList().size();

                            if (count != 2) {
                                // A vertex is needed, so create one.
                                try {
                                    String name = relation.uniqueName("vertex");
View Full Code Here

Examples of ptolemy.kernel.Relation.linkedPortList()

                continue;
            }

            currentList.setSecond(i);
            visitedRelations.add(relation);
            List<?> portList = relation.linkedPortList();

            int j = 0;
            IndexedList currentList2 = new IndexedList(portList, 0);
            path.add(currentList2);
            Path.Entry currentListEntry2 = path.getTail();
View Full Code Here

Examples of ptolemy.kernel.Relation.linkedPortList()

                            || _ignoreRelation(relation)) {
                        continue;
                    }

                    visitedRelations.add(relation);
                    List<?> portList = relation.linkedPortList();

                    int i = 0;
                    for (Object portObject : portList) {
                        Port port = (Port) portObject;
                        if (visitedPorts.contains(port)) {
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.