NED File simulations/Testing_ground.ned

Name Type Description
Testing_ground network

The ECMM Testing Ground

Source code:

//
// Copyright (C) 2012 Nikolaos Vastardis
// Copyright (C) 2012 University of Essex
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program; if not, see <http://www.gnu.org/licenses/>.
//

package ECMM.simulations;

import ECMM.SocialGenerator.socMovGen;
import inet.nodes.adhoc.MobileHost;
import inet.world.ChannelControl;
import inet.transport.rtp.RTPAVProfilePayload10Sender;
import inet.nodes.wireless.WirelessHost;
import inet.nodes.adhoc.MobileManetRoutingHost;
import inet.networklayer.autorouting.FlatNetworkConfigurator;

//
// <b> The ECMM Testing Ground </b>
//
// This network include all the necessary modules to create a simulation
// scenario, inlcuding the CMM, HCMM and ECMM models. The hosts regarded
// are simple MANET hosts with mobility defined by the omnetpp.ini file,
// which in this case in the CommunityMov. The DTApp is used to generate
// the network traffic, while the tracefile required is generated by the
// socMovGen module.
//
// @see socMovGen, CommunityMov, DTApp 
//
// @author Nikolaos Vastardis
//
network Testing_ground
{
    parameters:
        double playgroundSizeX;
        double playgroundSizeY;
        int numHosts;
        @display("bgl=2;bgb=500,500;bgg=333;bgi=,f");
    submodules:
        channelcontrol: ChannelControl {
            playgroundSizeX = playgroundSizeX;
            playgroundSizeY = playgroundSizeY;
            @display("p=60,47");
        }
        host[numHosts]: MobileManetRoutingHost {
            @display("p=252,250,r=200");
        }
        flatNetworkConfigurator: FlatNetworkConfigurator {
            @display("p=200,48;is=s");
        }
        socMovGen: socMovGen {
            @display("p=322,48");
        }
}