Bug 1916 - RandomWalk2dMobilityMode default "Bounds" attribute is not a rectangle
RandomWalk2dMobilityMode default "Bounds" attribute is not a rectangle
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: mobility models
ns-3-dev
All All
: P5 major
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-19 13:08 UTC by Tommaso Pecorella
Modified: 2014-05-21 15:05 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2014-05-19 13:08:12 UTC
Reported by Nissa Wang here:
https://groups.google.com/forum/?hl=en#!topic/ns-3-users/RJvwo-Uwx7s

The Bounds attribute default value is:
    .AddAttribute ("Bounds",
                   "Bounds of the area to cruise.",
                   RectangleValue (Rectangle (0.0, 0.0, 100.0, 100.0)),
                   MakeRectangleAccessor (&RandomWalk2dMobilityModel::m_bounds),
                   MakeRectangleChecker ())

However, the rectangle constructor is:
Rectangle::Rectangle (double _xMin, double _xMax,
                      double _yMin, double _yMax)

As a consequence, the default "Bounds" attribute is a *point* (and the node will stand still).
Comment 1 Tom Henderson 2014-05-20 00:19:41 UTC
yes on pushing the fix to ns-3-dev now before the release, as long as you test that it is really fixed this time.
Comment 2 Tommaso Pecorella 2014-05-21 15:05:21 UTC
changeset:   10786:52c7ca5d181f