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
}
}