Examples of sourcePortList()


Examples of ptolemy.actor.IOPort.sourcePortList()

            if (inPort.isMultiport()) {
                inPortMultiport = "[unique(\"" + sanitizedInPortName + "\")]";
            }

            List sourcePortList = inPort.sourcePortList();

            // Note: We allow an input port (provides) to connect to
            // multiple output ports (requires).  The nesC compiler
            // will generate a warning about uncombined calls in that
            // case.
View Full Code Here

Examples of ptolemy.actor.IOPort.sourcePortList()

            // If this ioPort is an input but has no connections, ignore it.
            // NOTE: In case we ever support ports that are both input
            // and output, we do want to list a port if it is an output,
            // regardless of whether it is also an unconnected input.
            if (!ioPort.isOutput() && (ioPort.sourcePortList().size() == 0)) {
                continue;
            }

            actor = (Actor) ioPort.getContainer();
View Full Code Here

Examples of ptolemy.actor.IOPort.sourcePortList()

                            // tokens consumed by this actor in order to
                            // avoid using read and write offset
                            // variables.
                        } else {
                            readTokens = DFUtilities.getRate(inputPort);
                            Iterator sourcePorts = inputPort.sourcePortList()
                                    .iterator();
                            label2: while (sourcePorts.hasNext()) {
                                IOPort sourcePort = (IOPort) sourcePorts.next();
                                CodeGeneratorHelper helper = (CodeGeneratorHelper) _getHelper(sourcePort
                                        .getContainer());
View Full Code Here

Examples of ptolemy.actor.IOPort.sourcePortList()

                // this should not happen
                throw new InternalErrorException("Error in testing token "
                        + "presence in the CI domain: " + ex);
            }

            Iterator sourcePorts = port.sourcePortList().iterator();

            while (sourcePorts.hasNext()) {
                IOPort sourcePort = (IOPort) sourcePorts.next();
                result.add(sourcePort.getContainer());
            }
View Full Code Here

Examples of ptolemy.actor.IOPort.sourcePortList()

        IOPort port = getContainer();
        _isPush = CIDirector._isPushPort(port);
        _actor = (Actor) port.getContainer();
        _isAsyncPullSink = !_isPush && CIDirector._isActive(_actor);

        Iterator sourcePorts = port.sourcePortList().iterator();

        if (sourcePorts.hasNext()) {
            port = (IOPort) sourcePorts.next();

            Actor actor = (Actor) port.getContainer();
View Full Code Here

Examples of ptolemy.actor.IOPort.sourcePortList()

        for (Iterator inPorts = actor.inputPortList().iterator(); inPorts
                .hasNext();) {
            IOPort inPort = (IOPort) inPorts.next();
            String sanitizedPortName = StringUtilities.sanitizeName(inPort
                    .getName(model));
            List sourcePortList = inPort.sourcePortList();

            if (sourcePortList.size() > 1) {
                throw new IllegalActionException(inPort, "Input port cannot "
                        + "receive data from multiple sources in Giotto.");
            }
View Full Code Here

Examples of ptolemy.actor.IOPort.sourcePortList()

            if (sourcePortList.size() > 1) {
                throw new IllegalActionException(inPort, "Input port cannot "
                        + "receive data from multiple sources in Giotto.");
            }

            Iterator sourcePorts = inPort.sourcePortList().iterator();

            while (sourcePorts.hasNext()) {
                IOPort port = (IOPort) sourcePorts.next();
                String sanitizedPortName2 = StringUtilities.sanitizeName(port
                        .getName(model));
View Full Code Here

Examples of ptolemy.actor.IOPort.sourcePortList()

            IOPort ioPort = (IOPort) sort[i];
            // If this ioPort is an input but has no connections, ignore it.
            // NOTE: In case we ever support ports that are both input
            // and output, we do want to list a port if it is an output,
            // regardless of whether it is also an unconnected input.
            if (ioPort.isInput() && (ioPort.sourcePortList().size() == 0)) {
                continue;
            }
            actor = (Actor) ioPort.getContainer();
            if (previouslySeenActor == actor) {
                if (ioPort.isOutput()) {
View Full Code Here

Examples of ptolemy.actor.IOPort.sourcePortList()

                            // tokens consumed by this actor in order to
                            // avoid using read and write offset
                            // variables.
                        } else {
                            readTokens = DFUtilities.getRate(inputPort);
                            Iterator sourcePorts = inputPort.sourcePortList()
                                    .iterator();
                            label2: while (sourcePorts.hasNext()) {
                                IOPort sourcePort = (IOPort) sourcePorts.next();
                                CodeGeneratorHelper helper = (CodeGeneratorHelper) _getHelper(sourcePort
                                        .getContainer());
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.