about mobility

0 views
Skip to first unread message

JIECONG WANG

unread,
Mar 21, 2012, 3:29:14 PM3/21/12
to EEL 6591
I have 25 nodes, 10 nodes as StaNodes ,15 nodes as ApNodes.

I want set My StaNodes as a rectangle . and 15 nodes move in the
rectangle randomly.

How can I set this rectangle layout type? using GridPositionAllocator?

Gokul Bhat

unread,
Mar 21, 2012, 3:39:12 PM3/21/12
to eel65...@googlegroups.com
You don't need to use the grid position allocator as that is used to only place the nodes. You want them to placed randomly right? You can use the RandomRectanglePositionAllocator and any random mobility model. I think the nodes will move within the bounds set by the rectangle position allocator.

JIECONG WANG

unread,
Mar 21, 2012, 3:47:09 PM3/21/12
to EEL 6591
Actually, I new places 10 BaseStation node as a Rectangle Layout Type,
and 15 ap nodes randomly move into this Rectangle and receive the
packet from BaseStation nodes.
Now I know I can use RandomRectanglePositionAllocatior, for randomly
moving. But I am still not clear that how can set the 10 BaseStation
as a Rectangle. Is there a class or function can do me a favor?

On Mar 22, 3:39 am, Gokul Bhat <bhatgo...@gmail.com> wrote:
> You don't need to use the grid position allocator as that is used to only
> place the nodes. You want them to placed randomly right? You can use the
> RandomRectanglePositionAllocator and any random mobility model. I think the
> nodes will move within the bounds set by the rectangle position allocator.
>
Reply all
Reply to author
Forward
0 new messages