Examples of outputPortList()


Examples of ptolemy.actor.Actor.outputPortList()

        List actorList = compositeActor.deepEntityList();
        ListIterator actors = actorList.listIterator();

        while (actors.hasNext()) {
            Actor actor = (Actor) actors.next();
            List outputPortList = actor.outputPortList();
            Iterator outputPorts = outputPortList.iterator();

            while (outputPorts.hasNext()) {
                IOPort port = (IOPort) outputPorts.next();
                Parameter initialValueParameter = (Parameter) ((NamedObj) port)
View Full Code Here

Examples of ptolemy.actor.Actor.outputPortList()

                        .intValue();
                if ((inputDepth < depth) || (depth == -1)) {
                    depth = inputDepth;
                }
            }
            Iterator outputs = actor.outputPortList().iterator();
            while (outputs.hasNext()) {
                IOPort outputPort = (IOPort) outputs.next();
                int outputDepth = ((Integer) _portToDepth.get(outputPort))
                        .intValue();
                if ((outputDepth < depth) || (depth == -1)) {
View Full Code Here

Examples of ptolemy.actor.Actor.outputPortList()

            // Find the set of the ports that need depths adjusted.
            List inputPorts;
            if (ioPort.isInput()) {
                boolean depthNeedsAdjusted = false;
                int numberOfOutputPorts = portContainer.outputPortList().size();
                // If an actor has no output ports, adjustment is necessary.
                if (numberOfOutputPorts == 0) {
                    depthNeedsAdjusted = true;
                }
                // If the actor declares itself as a strict actor,
View Full Code Here

Examples of ptolemy.actor.Actor.outputPortList()

                        IOPort port = (IOPort) inputPorts.next();
                        int rate = DFUtilities.getRate(port);
                        _updatePortOffset(port, code, rate);
                    }

                    Iterator outputPorts = actor.outputPortList().iterator();
                    while (outputPorts.hasNext()) {
                        IOPort port = (IOPort) outputPorts.next();
                        int rate = DFUtilities.getRate(port);
                        _updateConnectedPortsOffset(port, code, rate);
                    }
View Full Code Here

Examples of ptolemy.actor.Actor.outputPortList()

                    IOPort port = (IOPort) inputPorts.next();
                    int rate = DFUtilities.getRate(port);
                    _updatePortOffset(port, code, rate);
                }

                Iterator outputPorts = actor.outputPortList().iterator();
                while (outputPorts.hasNext()) {
                    IOPort port = (IOPort) outputPorts.next();
                    int rate = DFUtilities.getRate(port);
                    _updateConnectedPortsOffset(port, code, rate);
                }
View Full Code Here

Examples of ptolemy.actor.CompositeActor.outputPortList()

        super.initialize();
        _iterationCount = 0;

        CompositeActor container = (CompositeActor) getContainer();

        for (Iterator ports = container.outputPortList().iterator(); ports
                .hasNext();) {
            IOPort port = (IOPort) ports.next();

            // Create external initial production.
            int rate = DFUtilities.getTokenInitProduction(port);
View Full Code Here

Examples of ptolemy.actor.CompositeActor.outputPortList()

     *   method throws it.
     */
    private void _transferOutputsToEnvironment() throws IllegalActionException {
        // If there are no output ports, this method does nothing.
        CompositeActor container = (CompositeActor) getContainer();
        Iterator outports = container.outputPortList().iterator();
        while (outports.hasNext() && !_stopRequested) {
            IOPort p = (IOPort) outports.next();
            super.transferOutputs(p);
        }
    }
View Full Code Here

Examples of ptolemy.actor.CompositeActor.outputPortList()

            throws IllegalActionException {
        StringBuffer code = new StringBuffer();
        CompositeActor container = (CompositeActor) getComponent()
                .getContainer();

        Iterator outputPorts = container.outputPortList().iterator();
        while (outputPorts.hasNext()) {
            IOPort outputPort = (IOPort) outputPorts.next();
            code.append(_createOffsetVariablesIfNeeded(outputPort));
        }
View Full Code Here

Examples of ptolemy.actor.CompositeActor.outputPortList()

        _transformers = null;

        // Next, create the directed edges according to the connections at
        // the container level, communication dependencies between internal
        // actors
        List outputPorts = actor.outputPortList();
        Iterator embeddedActorsIterator = embeddedActors.iterator();

        // iterate all embedded actors (including opaque composite actors
        // and flattening transparent composite actors)
        while (embeddedActorsIterator.hasNext()) {
View Full Code Here

Examples of ptolemy.actor.CompositeActor.outputPortList()

        if (container instanceof CompiledCompositeActor
                && ((BooleanToken) _codeGenerator.generateJNI.getToken())
                        .booleanValue()) {

            if (_portNumber == 0) {
                int numberOfOutputPorts = container.outputPortList().size();

                code.append(_INDENT2 + "jobjectArray tokensToAllOutputPorts;"
                        + _eol);
                code.append(_INDENT2
                        + "jclass "
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.