Package net.tinyos.nesc.dump.xml

Examples of net.tinyos.nesc.dump.xml.Xinterface


        // Get the list of interfaces for this nesC component.
        ListIterator interfaces = Xnesc.interfaceList.listIterator();

        while (interfaces.hasNext()) {
            // Get the next interface for this nesC component.
            Xinterface interfaceFrom = (Xinterface) interfaces.next();
            saveInterfaceContainer(interfaceFrom);

            // Create IOPort for the From interface.
            createInterfaceIOPort(interfaceFrom);

            WiringNode checkNode = Xwiring.wg.lookup(interfaceFrom);

            if (!interfaceFrom.provided) {
                WiringScanForwards from = new WiringScanForwards(checkNode);
                ListIterator out = from.edges();
                WiringScan temp = null;

                while (out.hasNext()) {
                    Xwire e = (Xwire) out.next();
                    temp = from.duplicate();

                    if (temp.follow(e)) {
                        if (temp.node.ep instanceof Xinterface) {
                            Xinterface interfaceTo = (Xinterface) temp.node.ep;
                            saveInterfaceContainer(interfaceTo);

                            // Create IOPort for the To interface.
                            createInterfaceIOPort(interfaceTo);
View Full Code Here


        // Get the list of interfaces for this nesC component.
        ListIterator interfaces = Xnesc.interfaceList.listIterator();

        while (interfaces.hasNext()) {
            // Get the next interface for this nesC component.
            Xinterface intf = (Xinterface) interfaces.next();

            // Set the port name and class.
            Element port = new Element("port");
            port.setAttribute("name", intf.name);
            port.setAttribute("class", "ptolemy.actor.IOPort");
View Full Code Here

TOP

Related Classes of net.tinyos.nesc.dump.xml.Xinterface

Copyright © 2018 www.massapicom. 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.