Package ptolemy.kernel

Examples of ptolemy.kernel.Entity.portList()


            CompositeEntity container = (CompositeEntity) getContainer();
            Iterator entities = container.entityList().iterator();

            while (entities.hasNext()) {
                Entity entity = (Entity) entities.next();
                Iterator ports = entity.portList().iterator();

                while (ports.hasNext()) {
                    Port port = (Port) ports.next();

                    if (port instanceof WirelessIOPort) {
View Full Code Here


            CompositeEntity container = (CompositeEntity) getContainer();
            Iterator entities = container.entityList().iterator();

            while (entities.hasNext()) {
                Entity entity = (Entity) entities.next();
                Iterator ports = entity.portList().iterator();

                while (ports.hasNext()) {
                    Port port = (Port) ports.next();

                    if (port instanceof WirelessIOPort) {
View Full Code Here

        List result = new LinkedList();
        Iterator entities = container.entityList().iterator();

        while (entities.hasNext()) {
            Entity entity = (Entity) entities.next();
            Iterator ports = entity.portList().iterator();

            while (ports.hasNext()) {
                Port port = (Port) ports.next();

                if (port instanceof WirelessIOPort) {
View Full Code Here

        List result = new LinkedList();
        Iterator entities = container.entityList().iterator();

        while (entities.hasNext()) {
            Entity entity = (Entity) entities.next();
            Iterator ports = entity.portList().iterator();

            while (ports.hasNext()) {
                Port port = (Port) ports.next();

                if (port instanceof WirelessIOPort) {
View Full Code Here

        LinkedList newList = new LinkedList();
        for (Iterator entities = model.deepEntityList().iterator(); entities
                .hasNext();) {
            Entity entity = (Entity) entities.next();

            for (Iterator ports = entity.portList().iterator(); ports.hasNext();) {
                Port port = (Port) ports.next();
                Set set = analysis.getNotConstVariables(port);
                Variable variable;
                variable = DFUtilities.getRateVariable(port,
                        "tokenInitProduction");
View Full Code Here

                    List entityList = container.entityList();
                    Iterator entities = entityList.iterator();

                    while (entities.hasNext()) {
                        Entity entity = (Entity) entities.next();
                        Iterator ports = entity.portList().iterator();

                        while (ports.hasNext()) {
                            Port port = (Port) ports.next();

                            if (port instanceof IOPort
View Full Code Here

        }

        if (namedObj instanceof Entity) {
            Entity entity = (Entity) namedObj;

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

                // recurse so that we get all parameters deeply.
                createAttributeComputationFunctions(context, port, theClass,
                        constAnalysis);
View Full Code Here

        }

        if (namedObj instanceof Entity) {
            Entity entity = (Entity) namedObj;

            for (Iterator ports = entity.portList().iterator(); ports.hasNext();) {
                Port port = (Port) ports.next();
                Local portLocal = Jimple.v().newLocal("port",
                        RefType.v(PtolemyUtilities.portClass));
                body.getLocals().add(portLocal);
View Full Code Here

        }

        if (object instanceof Entity) {
            Entity entity = (Entity) object;

            for (Iterator ports = entity.portList().iterator(); ports.hasNext();) {
                Port port = (Port) ports.next();
                updateCreatedSet(prefix, context, port, objectNameToCreatorName);
            }
        }
View Full Code Here

                Iterator entities = container.deepEntityList().iterator();

                while (entities.hasNext()) {
                    Entity entity = (Entity) entities.next();

                    for (Iterator ports = entity.portList().iterator(); ports
                            .hasNext();) {
                        IOPort port = (IOPort) ports.next();
                        String typeString = typeMap.getType(port).toString();
                        _setOrCreate(port, "resolvedSignalType", typeString);
                    }
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.