Bug 145 - waypoint list mobility model
: waypoint list mobility model
Status: RESOLVED INVALID
: ns-3
node module
: pre-release
: All All
: P3 enhancement
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-03-03 06:32 EDT by
Modified: 2008-04-15 16:34 EDT (History)


Attachments
patch (11.54 KB, patch)
2008-03-03 06:32 EDT, Gustavo J. A. M. Carneiro
Details | Diff
patch v2 (fixes bad copy-paste of copyright) (11.56 KB, patch)
2008-03-03 06:39 EDT, Gustavo J. A. M. Carneiro
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-03-03 06:32:30 EDT
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.
------- Comment #1 From 2008-03-03 06:32:52 EDT -------
Created an attachment (id=113) [details]
patch
------- Comment #2 From 2008-03-03 06:39:51 EDT -------
Created an attachment (id=114) [details]
patch v2 (fixes bad copy-paste of copyright)
------- Comment #3 From 2008-04-15 12:44:11 EDT -------
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 ?
------- Comment #4 From 2008-04-15 15:16:03 EDT -------
(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. 
------- Comment #5 From 2008-04-15 15:47:15 EDT -------
(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.
------- Comment #6 From 2008-04-15 16:29:10 EDT -------
(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.
------- Comment #7 From 2008-04-15 16:34:44 EDT -------
(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.