Examples of inputPortList()


Examples of ptolemy.actor.Actor.inputPortList()

                actor_fire_func_name = "/*****FIRING_ACTOR:"+actor_name+"*****/\n"+actor_fire_func_name+"/*****done "+actor_name+"*****/\n\n";
                code.append(actor_fire_func_name);
               
               
                // 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()

        Iterator actors = container.deepEntityList().iterator();
        while (actors.hasNext()) {
            StringBuffer tempCode2 = new StringBuffer();
            Actor actor = (Actor) actors.next();
            Iterator inputPorts = actor.inputPortList().iterator();
            while (inputPorts.hasNext()) {
                IOPort inputPort = (IOPort) inputPorts.next();
                // If dynamic references are desired, conditionally pad buffers
                // and append the dynamic offset variables for input ports.
                if (dynamicReferencesAllowed) {
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

        Iterator actors = container.deepEntityList().iterator();
        while (actors.hasNext()) {
            Actor actor = (Actor) actors.next();
            CodeGeneratorHelper actorHelper = (CodeGeneratorHelper) _getHelper((NamedObj) actor);
            Iterator inputPorts = actor.inputPortList().iterator();
            while (inputPorts.hasNext()) {
                IOPort inputPort = (IOPort) inputPorts.next();
                for (int k = 0; k < inputPort.getWidth(); k++) {
                    int newCapacity = getBufferSize(inputPort, k);
                    int oldCapacity = actorHelper.getBufferSize(inputPort, k);
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

            // Initialize the dependency graph
            _dependencyGraph = _constructDisconnectedDependencyGraph();

            // add an edge from input to output
            // if the output depends on the input
            Iterator inputs = actor.inputPortList().listIterator();

            while (inputs.hasNext()) {
                IOPort inputPort = (IOPort) inputs.next();
                Collection reachableOutputs = _detailedDependencyGraph
                        .reachableNodes(_detailedDependencyGraph
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

        Iterator actorPorts;
        ProcessReceiver nextReceiver;

        while (actors.hasNext()) {
            Actor actor = (Actor) actors.next();
            actorPorts = actor.inputPortList().iterator();

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

                // Setting finished flag in the receivers.
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

        ArrayList sourcePorts = new ArrayList();
        sourcePorts.addAll(actor.outputPortList());

        if (actor instanceof CompositeActor) {
            sourcePorts.addAll(actor.inputPortList());
        }

        Iterator ports = sourcePorts.iterator();

        // for each output port.
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

     * @return The port that has the given name.
     */
    public TypedIOPort getPort(String refName) {
        Actor actor = (Actor) _component;

        Iterator inputPorts = actor.inputPortList().iterator();

        while (inputPorts.hasNext()) {
            TypedIOPort inputPort = (TypedIOPort) inputPorts.next();

            // The channel is specified as $ref(port#channelNumber).
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

        }

        super.prefire();

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

        while (inputPorts.hasNext()) {
            IOPort inputPort = (IOPort) inputPorts.next();

            // NOTE: If the port is a ParameterPort, then we should not
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

        Iterator actors = container.deepEntityList().iterator();
        while (actors.hasNext()) {
            StringBuffer tempCode2 = new StringBuffer();
            Actor actor = (Actor) actors.next();
            Iterator inputPorts = actor.inputPortList().iterator();
            while (inputPorts.hasNext()) {
                IOPort inputPort = (IOPort) inputPorts.next();
                // If dynamic references are desired, conditionally pad buffers
                // and append the dynamic offset variables for input ports.
                if (dynamicReferencesAllowed) {
View Full Code Here

Examples of ptolemy.actor.Actor.inputPortList()

        Iterator actors = container.deepEntityList().iterator();
        while (actors.hasNext()) {
            Actor actor = (Actor) actors.next();
            CodeGeneratorHelper actorHelper = (CodeGeneratorHelper) _getHelper((NamedObj) actor);
            Iterator inputPorts = actor.inputPortList().iterator();
            while (inputPorts.hasNext()) {
                IOPort inputPort = (IOPort) inputPorts.next();
                for (int k = 0; k < inputPort.getWidth(); k++) {
                    int newCapacity = getBufferSize(inputPort, k);
                    int oldCapacity = actorHelper.getBufferSize(inputPort, k);
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.