[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to get current xy co-ordinates



Thank you for your reply. but how will you define a simulation area as such in
ns-2. Is there anyway by which we can give some parameters to define a
rectangular area either by a centre (x,y) and area l *b or from a upper left hand
corner (x,y) to a lower right hand corner (x,y)
thanks in advance
Rudhra

Kun-Chan Lan wrote:

> I think you can use  getLoc()  in C++ . It's in mobilenode.h
>
> Kun-chan Lan
>
> > hello,
> >        I am developing a new protocol in ns for adhoc networks. As part of
> > the simulation I need to get the current x and y positions in a simulation
> > area of l * b.
> > (a) how do you define a area of simulation in ns according to user given
> > parameters
> > (b) how will you get the current x and y positions relative to that area of
> > simulation
> >
> > your earliest help will be kindly appreciated
> > regards
> > Rudhra