Examples of inputPortList()


Examples of ptolemy.actor.Actor.inputPortList()

            while (allActors.hasNext()) {
                Actor actor = (Actor) allActors.next();

                // Get all input ports
                Iterator allInputs = actor.inputPortList().iterator();

                while (allInputs.hasNext()) {
                    IOPort inputPort = (IOPort) allInputs.next();
                    Receiver[][] receivers = inputPort.getReceivers();
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

            // The reason to include the depths of input ports for calculation
            // is to reduce unnecessary number of firings. In particular,
            // if an actor receives a trigger event that has the same tag as
            // one of its pure events, one firing is sufficient.
            int depth = -1;
            Iterator inputs = actor.inputPortList().iterator();
            while (inputs.hasNext()) {
                IOPort inputPort = (IOPort) inputs.next();
                int inputDepth = ((Integer) _portToDepth.get(inputPort))
                        .intValue();
                if ((inputDepth < depth) || (depth == -1)) {
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

                if (portContainer.isStrict()) {
                    depthNeedsAdjusted = true;
                }
                if (depthNeedsAdjusted) {
                    // If depth needs adjusted:
                    inputPorts = portContainer.inputPortList();
                    if (inputPorts.size() <= 1) {
                        // If the sink actor has only one input port, there is
                        // no need to adjust its depth.
                        continue;
                    }
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

            // of the director, essentially setting the field _waitingTokens
            // in each receiver to zero. This should be done in SDFScheduler.
            actorsIterator = actors.iterator();
            while (actorsIterator.hasNext()) {
                Actor actor = (Actor) actorsIterator.next();
                Iterator inputPorts = actor.inputPortList().iterator();
                while (inputPorts.hasNext()) {
                    IOPort inputPort = (IOPort) inputPorts.next();
                    Receiver[][] receivers = inputPort.getReceivers();
                    if (receivers != null) {
                        for (int m = 0; m < receivers.length; m++) {
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

        }

        Iterator actors = container.deepEntityList().iterator();
        while (actors.hasNext()) {
            Actor actor = (Actor) actors.next();
            Iterator inputPorts = actor.inputPortList().iterator();
            while (inputPorts.hasNext()) {
                IOPort inputPort = (IOPort) inputPorts.next();
                code.append(_createOffsetVariablesIfNeeded(inputPort));
            }
        }
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

                    // generate fire code for the actor
                    code.append(helper.generateFireCode());
                    code.append(helper.generateTypeConvertFireCode());

                    // update buffer offset after firing each actor once
                    Iterator inputPorts = actor.inputPortList().iterator();
                    while (inputPorts.hasNext()) {
                        IOPort port = (IOPort) inputPorts.next();
                        int rate = DFUtilities.getRate(port);
                        _updatePortOffset(port, code, rate);
                    }
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

                code.append(CodeStream.indent(CodeGeneratorHelper
                        .generateName((NamedObj) actor)
                        + "();" + _eol));

                // update buffer offset after firing each actor once
                Iterator inputPorts = actor.inputPortList().iterator();
                while (inputPorts.hasNext()) {
                    IOPort port = (IOPort) inputPorts.next();
                    int rate = DFUtilities.getRate(port);
                    _updatePortOffset(port, code, rate);
                }
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

                // Should return if there are no more input data,
                // irrespective of return value of prefire() of
                // the actor, which is not reliable.
                boolean outOfData = true;
                Iterator inPorts = actor.inputPortList().iterator();

                while (inPorts.hasNext()) {
                    IOPort port = (IOPort) inPorts.next();

                    for (int i = 0; i < port.getWidth(); i++) {
View Full Code Here

Examples of ptolemy.actor.CompositeActor.inputPortList()

    public void fire() throws IllegalActionException {
        FSMActor controller = getController();
        controller.readInputs();

        CompositeActor container = (CompositeActor) getContainer();
        List inputPortList = container.inputPortList();
        State currentState = controller.currentState();

        // Choose a nonpreemptive transition.
        List enabledTransitions = controller.enabledTransitions(currentState
                .preemptiveTransitionList());
View Full Code Here

Examples of ptolemy.actor.CompositeActor.inputPortList()

     @param portSet The given set of ports
     *  @param referredInputPorts The referred set.
     */
    public void getReferredInputPorts(Set portSet, Set referredInputPorts) {
        CompositeActor container = (CompositeActor) getContainer();
        List inputPortList = container.inputPortList();

        for (int i = 0; i < inputPortList.size(); i++) {
            IOPort inputPort = (IOPort) inputPortList.get(i);

            if (portSet.contains(inputPort.getName())) {
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.