Bugzilla – Bug 145
waypoint list mobility model
Last modified: 2008-04-15 16:34:44 UTC
I made a new "waypoint list" mobility model, to help a student working with NS-3. It's similar to the random waypoint model, but in this case the waypoints are deterministic and taken from a list given by the programmer. Let me know if there is interest in including this model in ns-3-dev.
Created attachment 113 [details] patch
Created attachment 114 [details] patch v2 (fixes bad copy-paste of copyright)
I wonder if this patch is superseded by the current src/mobility/position-allocator.h code, more specifically: ListPositionAllocator. If so, can you confirm so I can close this bug as INVALID ?
(In reply to comment #3) > I wonder if this patch is superseded by the current > src/mobility/position-allocator.h code, more specifically: > ListPositionAllocator. > > If so, can you confirm so I can close this bug as INVALID ? > Correct me if I'm wrong, but I think ListPositionAllocator is used to assign preset positions from a list to _different nodes_. WaypointListMobilityModel has a list of positions through which a single node has to travel. So, no, I don't think they overlap.
(In reply to comment #4) > (In reply to comment #3) > > I wonder if this patch is superseded by the current > > src/mobility/position-allocator.h code, more specifically: > > ListPositionAllocator. > > > > If so, can you confirm so I can close this bug as INVALID ? > > > > Correct me if I'm wrong, but I think ListPositionAllocator is used to assign > preset positions from a list to _different nodes_. WaypointListMobilityModel yes. > has a list of positions through which a single node has to travel. But RandomWaypointMobilityModel now uses another PositionAllocator object to allocate each destination position.
(In reply to comment #5) > (In reply to comment #4) > > (In reply to comment #3) > > > I wonder if this patch is superseded by the current > > > src/mobility/position-allocator.h code, more specifically: > > > ListPositionAllocator. > > > > > > If so, can you confirm so I can close this bug as INVALID ? > > > > > > > Correct me if I'm wrong, but I think ListPositionAllocator is used to assign > > preset positions from a list to _different nodes_. WaypointListMobilityModel > > yes. > > > has a list of positions through which a single node has to travel. > > But RandomWaypointMobilityModel now uses another PositionAllocator object to > allocate each destination position. Hmm... OK. Then RandomWaypointMobilityModel becomes a misnomer, since it may not be random at all :) But, yes, in this case, which is news to me, WaypointListMobilityModel becomes redundant.
(In reply to comment #6) > > But RandomWaypointMobilityModel now uses another PositionAllocator object to > > allocate each destination position. > > Hmm... OK. Then RandomWaypointMobilityModel becomes a misnomer, since it may > not be random at all :) > > But, yes, in this case, which is news to me, WaypointListMobilityModel becomes > redundant. marking INVALID then.