Examples of portList()


Examples of ptolemy.actor.CompositeActor.portList()

        CompositeActor container = (CompositeActor) getComponent()
                .getContainer();
        ptolemy.codegen.c.actor.TypedCompositeActor containerHelper = (ptolemy.codegen.c.actor.TypedCompositeActor) _getHelper(container);

        // Find the port number for the given input port.
        Iterator containerPorts = container.portList().iterator();
        int portNumber = 0;
        while (containerPorts.hasNext()) {
            if (containerPorts.next() == inputPort) {
                break;
            }
View Full Code Here

Examples of ptolemy.actor.CompositeActor.portList()

        CompositeActor container = (CompositeActor) getComponent()
                .getContainer();
        ptolemy.codegen.c.actor.TypedCompositeActor containerHelper = (ptolemy.codegen.c.actor.TypedCompositeActor) _getHelper(container);

        // Find the port number for the given output port.
        Iterator containerPorts = container.portList().iterator();
        int portNumber = 0;
        while (containerPorts.hasNext()) {
            if (containerPorts.next() == outputPort) {
                break;
            }
View Full Code Here

Examples of ptolemy.kernel.ComponentEntity.portList()

            if (entityDeletes != null) {
                moml.append(entityDeletes);
            }

            Iterator ports = entity.portList().iterator();

            while (ports.hasNext()) {
                Port port = (Port) (ports.next());
                String portDeletes = _deletesIfNecessary(port);
View Full Code Here

Examples of ptolemy.kernel.ComponentEntity.portList()

            throws IllegalActionException {
        for (Iterator actors = actorList.iterator(); actors.hasNext();) {
            ComponentEntity actor = (ComponentEntity) actors.next();

            // Check if this actor has any ports with rate of zero.
            for (Iterator ports = actor.portList().iterator(); ports.hasNext();) {
                IOPort port = (IOPort) ports.next();

                if (DFUtilities.getRate(port) == 0) {
                    return actor;
                }
View Full Code Here

Examples of ptolemy.kernel.ComponentEntity.portList()

        }

        if (container instanceof ComponentEntity) {
            ComponentEntity entity = (ComponentEntity) container;

            for (Iterator ports = entity.portList().iterator(); ports.hasNext();) {
                Port port = (Port) ports.next();
                _createTokenAndExpressionFields(theClass, context, port,
                        attributeToValueFieldMap, constantAnalysis, debug);
            }
        }
View Full Code Here

Examples of ptolemy.kernel.ComponentEntity.portList()

            Locatable location = (Locatable) composite;
            Nameable container = location.getContainer();

            if (container instanceof ComponentEntity) {
                ComponentEntity entity = (ComponentEntity) container;
                return entity.portList().iterator();
            } else {
                return new NullIterator();
            }
        }
View Full Code Here

Examples of ptolemy.kernel.ComponentEntity.portList()

            ComponentEntity actor = (ComponentEntity) keysIterator.next();

            HashMap portsReceiversMap = new HashMap();
            HashMap portTypes = new HashMap();

            Iterator allPorts = actor.portList().iterator();

            while (allPorts.hasNext()) {
                IOPort currentPort = (IOPort) allPorts.next();
                Receiver[][] receivers = new Receiver[0][0];
View Full Code Here

Examples of ptolemy.kernel.ComponentEntity.portList()

            JimpleBody body, CompositeActor composite) {
        for (Iterator entities = composite.deepEntityList().iterator(); entities
                .hasNext();) {
            ComponentEntity entity = (ComponentEntity) entities.next();

            for (Iterator ports = entity.portList().iterator(); ports.hasNext();) {
                ComponentPort port = (ComponentPort) ports.next();

                Local portLocal;

                // If we already have a local reference to the port
View Full Code Here

Examples of ptolemy.kernel.ComponentEntity.portList()

            }

            ArrayList portNames = new ArrayList();
            ArrayList portTypes = new ArrayList();

            for (Iterator ports = entity.portList().iterator(); ports.hasNext();) {
                TypedIOPort port = (TypedIOPort) ports.next();
                portNames.add(port.getName());
                portTypes.add(new StringToken(port.getType().toString()));
            }
View Full Code Here

Examples of ptolemy.kernel.ComponentEntity.portList()

     *            The set of nodes(ComponentEntities).
     */
    public Bindings(Vector nodes) {
        for (int i = 0; i < nodes.size(); i++) {
            ComponentEntity actor = (ComponentEntity) (nodes.elementAt(i));
            Iterator iter = actor.portList().iterator();

            while (iter.hasNext()) {
                IOPort actorPort = (IOPort) iter.next();
                String varLabel = actor.getName() + "." + actorPort.getName();
                put(varLabel, null);
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.