File Underlay/SimpleUnderlay/SimpleOverlayHost.ned

Contains:

//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//

import
    "NotificationBoard",
    "Overlay",
    "OverlayApp",
    "SimpleUDP";

module SimpleOverlayHost
    parameters:
        IPForward : bool,
	overlayType : string,
	overlayAppType : string,
        routingFile : string;

    gates:
        in: overlayNeighborArrowIn[];    // incoming gate for visualizing overlay neighborship with connection arrows
        out: overlayNeighborArrowOut[];  // incoming gate for visualizing overlay neighborship with connection arrows

    submodules:
	notificationBoard: NotificationBoard;
	    display: "p=60,80;i=block/control";

	app: overlayAppType like OverlayApp;
	    display: "p=250,10;i=block/segm";

	overlay: overlayType like Overlay
	    display: "p=250,80;i=block/network2";

        udp: SimpleUDP;
            display: "p=250,150;i=block/transport";

	interfaceTable: InterfaceTable;
            display: "p=60,150;i=block/table";

    connections nocheck:
	app.to_overlay --> overlay.from_app;
	app.from_overlay <-- overlay.to_app;

	overlay.to_udp --> udp.from_app++;
	overlay.from_udp <-- udp.to_app++;

endmodule