Examples of deepGetReceivers()


Examples of ptolemy.actor.IOPort.deepGetReceivers()

                    .hasNext()
                    && !_stopRequested;) {
                IOPort port = (IOPort) inputPorts.next();

                if (!(port instanceof ParameterPort)) {
                    Receiver[][] insideReceivers = port.deepGetReceivers();
                    for (int i = 0; i < port.getWidth(); i++) {
                        if (port.hasToken(i)) {
                            Token token = port.get(i);
                            if ((insideReceivers != null)
                                    && (insideReceivers[i] != null)) {
View Full Code Here

Examples of ptolemy.actor.IOPort.deepGetReceivers()

            Iterator inPorts = comp.inputPortList().iterator();
            List resultsList = new LinkedList();

            while (inPorts.hasNext()) {
                IOPort port = (IOPort) inPorts.next();
                Receiver[][] allReceivers = port.deepGetReceivers();
                states = controller.entityList().iterator();

                while (states.hasNext()) {
                    state = (State) states.next();
View Full Code Here

Examples of ptolemy.actor.IOPort.deepGetReceivers()

                        && connectedPort.isInput() && connectedPort.isOpaque()) {
                    // The port container of this receiver is
                    // connected to the inside of a boundary port.
                    // Now determine if this receiver's channel is
                    // connected to the boundary port.
                    Receiver[][] receivers = connectedPort.deepGetReceivers();

                    for (int i = 0; i < receivers.length; i++) {
                        for (int j = 0; j < receivers[i].length; j++) {
                            if (_receiver == receivers[i][j]) {
                                _connectedBoundaryCacheIsOn = true;
View Full Code Here

Examples of ptolemy.actor.IOPort.deepGetReceivers()

                        && connectedPort.isInput() && connectedPort.isOpaque()) {
                    // The port container of this receiver is
                    // connected to the inside of a boundary port.
                    // Now determine if this receiver's channel is
                    // connected to the boundary port.
                    Receiver[][] receivers = connectedPort.deepGetReceivers();

                    for (int i = 0; i < receivers.length; i++) {
                        for (int j = 0; j < receivers[i].length; j++) {
                            if (_receiver == receivers[i][j]) {
                                _connectedInsideOfBoundaryCacheIsOn = true;
View Full Code Here

Examples of ptolemy.actor.IOPort.deepGetReceivers()

        // may have forked connections on the inside.
        Iterator inputPorts = container.inputPortList().iterator();
        while (inputPorts.hasNext()) {
            IOPort inputPort = (IOPort) (inputPorts.next());
            result.append("Send inside from " + inputPort.getFullName() + "\n");
            Receiver[][] destinations = inputPort.deepGetReceivers();
            for (int channel = 0; channel < destinations.length; channel++) {
                if (destinations[channel] != null) {
                    result.append("   on channel " + channel + ":\n");
                    for (int copy = 0; copy < destinations[channel].length; copy++) {
                        result.append("-- to "
View Full Code Here

Examples of ptolemy.actor.IOPort.deepGetReceivers()

            // Find the inside ports connected to this input port.
            // NOTE: insideSinkPortList() is an expensive operation,
            // and it may return ports that are not physically
            // connected (as in wireless ports).  Hence, we
            // use deepGetReceivers() here. EAL
            Receiver[][] receivers = inputPort.deepGetReceivers();

            for (int i = 0; i < receivers.length; i++) {
                for (int j = 0; j < receivers[i].length; j++) {
                    IOPort ioPort = receivers[i][j].getContainer();
                    Actor ioPortContainer = (Actor) ioPort.getContainer();
View Full Code Here

Examples of ptolemy.actor.IOPort.deepGetReceivers()

            Iterator inputPorts = ((Actor) getContainer()).inputPortList()
                    .iterator();

            while (inputPorts.hasNext()) {
                IOPort inputPort = (IOPort) inputPorts.next();
                Receiver[][] deepReceivers = inputPort.deepGetReceivers();
                foundNotSatisfiedReceiver: for (int i = 0; i < deepReceivers.length; i++) {
                    for (int j = 0; j < deepReceivers[i].length; j++) {
                        QueueReceiver deepReceiver = (QueueReceiver) deepReceivers[i][j];
                        IOPort port = deepReceiver.getContainer();
View Full Code Here

Examples of ptolemy.actor.TypedIOPort.deepGetReceivers()

                // For the same reason as above, we cannot do: if (port.isInput())...
                if (port.isOutput()) {
                    remoteReceivers = port.getRemoteReceivers();
                } else {
                    remoteReceivers = port.deepGetReceivers();
                }

                if (remoteReceivers.length == 0) {
                    // The channel of this output port doesn't have any sink.
                    result.append(generateName(_component));
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.