[Ns-developers] Mobility Node extension

Hagen Paul Pfeifer hagen at jauu.net
Mon Jun 2 06:08:04 PDT 2008


This patch extend the current logic to that
affect that particular nodes can be assigned to different
mobility models. The current behavior is that only instances
of type NodeContainer can assigned to mobility models.

This simplify the process if the topology for all nodes
within one container is equal but the nodes differ in
their mobility behavior.

As an example (pseudo code):

backbone.Create(10);

MobilityHelper groupOne;
// initiate group mobility
groupOne.SetMobilityModel("ns3::RandomDirection2dMobilityModel", ...)


MobilityHelper groupTwo;
// initiate group mobility for group two
groupTwo.SetMobilityModel("ns3::StaticMobilityModel", ...)


for (uint32_t i = 0; i < 5; ++i)
  groupOne.InstallNode (backbone.Get(i));

for (uint32_t i = 0; i < 5; ++i)
  groupTwo.InstallNode (backbone.Get(i));

Best regards, Hagen






-------------- next part --------------
A non-text attachment was scrubbed...
Name: mobility-install-node.patch
Type: text/x-patch
Size: 2873 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20080602/f7d6e9d6/mobility-install-node.bin


More information about the Ns-developers mailing list