// 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);