the attribute bounds in class RandomWalk2dMobilityMode

43 views
Skip to first unread message

Nissa wang

unread,
May 19, 2014, 10:14:45 AM5/19/14
to ns-3-...@googlegroups.com
1.First, we know the mobility mode "RandomWalk2dMobilityMode". we can see the initial values in http://www.nsnam.org/docs/release/3.18/doxygen/random-walk-2d-mobility-model_8cc_source.html#l00036
42  .AddAttribute ("Bounds",
43  "Bounds of the area to cruise.",
44  RectangleValue (Rectangle (0.0, 0.0, 100.0, 100.0)),
45  MakeRectangleAccessor (&RandomWalk2dMobilityModel::m_bounds),
46  MakeRectangleChecker ())


2.the initial value of bounds is Rectangle (0.0, 0.0, 100.0, 100.0)

3.However,Rectangle is defined like Rectangle (double _xMin, double _xMax, double _yMin, double _yMax)

4.so, what is the Rectangle in 1 looks like,its _xMin = _xMax = 0,_yMin = _yMax = 100

Tommaso Pecorella

unread,
May 19, 2014, 1:04:49 PM5/19/14
to ns-3-...@googlegroups.com
Hi,

indeed, it's an extremely tiny rectangle.

I'm filing a bug right now. Thanks for reporting.

Cheers,

T.

Nissa wang

unread,
May 19, 2014, 9:13:34 PM5/19/14
to ns-3-...@googlegroups.com

Hi,it is my honor . And can you tell me the relation between Rectangle bounds and Netanim coordinate . if i set the Rectangle (0.0, 100.0, 0, 100.0), then the Netanim coordinate will be the same, right? But most the time, they are not the same.

在 2014年5月20日星期二UTC+8上午1时04分49秒,Tommaso Pecorella写道:

Tommaso Pecorella

unread,
May 20, 2014, 2:30:32 AM5/20/14
to ns-3-...@googlegroups.com
Hi,

I should check the running code, but I suspect that the code assumes that the initial node position is inside the bounds. If it's outside... I should double check what happens.

Cheers,

T.
Reply all
Reply to author
Forward
0 new messages