Mailing list archive (omnetpp-l at omnetpp.org)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omnetpp-l] building a network topology




Why do you want to do this? Do you want a wired or wireless network?


Date: Fri, 15 May 2009 10:01:20 -0700
From: markglein at xxx
To: omnetpp-l at xxx
Subject: [Omnetpp-l] building a network topology

Ladies and Gentlemen,

I am new to Omnet. I want to build an ad hoc mobile network. I used the node inet/modes/adhoc/MobileManetRoutingHost for my network. I want to connect every node to its visible neighbors.
I tried the following network,  but i am not succesful. Can someone help me please.

Best Regards,
Mark

network myMobileNet
{
    parameters:
        int numHosts;
        double playgroundSizeX;
        double playgroundSizeY;
        @display("bgb=1024,528");
    submodules:
        host[numHosts]: MobileManetRoutingHost {
            parameters:
                @display("r=,,#707070;p=154,200");
        }
        channelcontrol: ChannelControl {
            parameters:
                playgroundSizeX = playgroundSizeX;
                playgroundSizeY = playgroundSizeY;
                @display("p=111,49");
        }
        scenarioManager: ScenarioManager {
            parameters:
                @display("p=354,50");
        }
         connections allowunconnected:
             for i=0..numHosts-1, j=0..sizeof(radioIn)-1{
                 host[i].radioIn--> host[j].radioIn
             }           
}



¿Eres del Madrid, del Barça, del Atleti...? Apoya a tu equipo en la Zona Fan de MSN Deportes
_______________________________________________
Omnetpp-l mailing list
Omnetpp-l at xxx
http://lists.omnetpp.org/mailman/listinfo/omnetpp-l

Home | Main Index | Thread Index