Examples of linkedRelationList()


Examples of ptolemy.actor.IOPort.linkedRelationList()

                        java.util.Arrays.fill(flags, false);
                        stateMap.put(inPort, flags);
                        continue;
                    }

                    Iterator relations = inPort.linkedRelationList().iterator();
                    int channelIndex = 0;

                    while (relations.hasNext()) {
                        IORelation relation = (IORelation) relations.next();
                        boolean linked = false;
View Full Code Here

Examples of ptolemy.actor.IOPort.linkedRelationList()

            if (port instanceof IOPort) {
                // Create a diagonal connector for multiports, if necessary.
                IOPort ioPort = (IOPort) port;

                if (ioPort.isMultiport()) {
                    int numberOfLinks = ioPort.linkedRelationList().size();

                    if (numberOfLinks > 1) {
                        // The diagonal is necessary.
                        CompositeFigure compositeFigure = new CompositeFigure(
                                figure) {
View Full Code Here

Examples of ptolemy.actor.TypedIOPort.linkedRelationList()

            }
            ++i;
            Iterator ports = clone.portList().iterator();
            while (ports.hasNext()) {
                TypedIOPort port = (TypedIOPort) ports.next();
                Iterator relations = port.linkedRelationList().iterator();
                while (relations.hasNext()) {
                    TypedIORelation relation = (TypedIORelation) relations
                            .next();

                    // Use a different criterion to delete relation
View Full Code Here

Examples of ptolemy.kernel.ComponentPort.linkedRelationList()

            // the class definition and should not be recreated in undo.
            if (_undoEnabled
                    && (port.getDerivedLevel() == Integer.MAX_VALUE || relation
                            .getDerivedLevel() == Integer.MAX_VALUE)) {
                // Get the relation at the given index
                List linkedRelations = port.linkedRelationList();
                int index = linkedRelations.indexOf(tmpRelation);

                if (index != -1) {
                    // Linked on the outside...
                    _undoContext.appendUndoMoML("<link port=\"" + portName
View Full Code Here

Examples of ptolemy.kernel.ComponentPort.linkedRelationList()

                } else {
                    throw new RuntimeException("Found a port: " + port
                            + " that does not have a local variable!");
                }

                Iterator relations = port.linkedRelationList().iterator();
                int index = -1;

                while (relations.hasNext()) {
                    index++;
View Full Code Here

Examples of ptolemy.kernel.ComponentPort.linkedRelationList()

                } else {
                    throw new RuntimeException("Found a port: " + port
                            + " that does not have a local variable!");
                }

                Iterator relations = port.linkedRelationList().iterator();
                int index = -1;

                while (relations.hasNext()) {
                    index++;
View Full Code Here

Examples of ptolemy.kernel.ComponentPort.linkedRelationList()

            // Record the connections to the composite entity's ports.
            Map<Port, List<Object>> portLinks = new HashMap<Port, List<Object>>();
            for (Object portObject : entity.portList()) {
                ComponentPort port = (ComponentPort) portObject;
                List<Object> linkedRelations = new LinkedList<Object>();
                linkedRelations.addAll((Collection<?>) port
                        .linkedRelationList());
                linkedRelations.addAll((Collection<?>) port
                        .insideRelationList());
                portLinks.put(port, linkedRelations);
            }
View Full Code Here

Examples of ptolemy.kernel.ComponentPort.linkedRelationList()

            while (states.hasNext()) {
                State state = (State) states.next();

                ComponentPort inPort = state.incomingPort;
                List transitionList = inPort.linkedRelationList();
                InterfaceAutomatonTransition incomingTransition = null;

                if (transitionList.size() != 1) {
                    continue;
                }
View Full Code Here

Examples of ptolemy.kernel.ComponentPort.linkedRelationList()

                if (incomingTransition.getType() != InterfaceAutomatonTransition._INTERNAL_TRANSITION) {
                    continue;
                }

                ComponentPort outPort = state.outgoingPort;
                transitionList = outPort.linkedRelationList();

                InterfaceAutomatonTransition outgoingTransition = null;

                if (transitionList.size() != 1) {
                    continue;
View Full Code Here

Examples of ptolemy.kernel.ComponentPort.linkedRelationList()

        while (states.hasNext()) {
            State state = (State) states.next();
            ComponentPort outPort = state.outgoingPort;

            if (outPort.linkedRelationList().size() == 0) {
                deadlockStates.add(state);
            }
        }

        return deadlockStates;
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.