Hi Anupama,

Answer to your first question is as follows:

MobileNode * curNode = (MobileNode *) (Node::get_node_by_address(id_)); //
id_ is the id of node
double x,y,z;
curNode->getLoc(&x,&y,&z);

This will assign the X,Y,Z coordinate value to your local variable.

I hope this helps.

Anup
On 12/20/05, A Anupama <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> I am implementing some security extensions to AODV protocol.  I am having
> some doubts....
> 1)   How can I know the location information ((x,y,z) co-ordinate
> form)  of
> a mobile wireless node at protocol design time as i required to use the
> location information while sending a packet ?
> 2)   How the co-ordinate system in ns/nam ((x,y,z) co-ordinate system) is
> mapped with actual location ? As the transmission range is described in
> meters , how can we know depending on the location (x,y,z) information
> whether two nodes are in transmission range or not ?
>
> Thanks in advance...
>
> Regards
> Anupama
>



--
I don't know the key to success, but the key to failure is trying to please
everybody.
  - Bill Cosby
My mother drew a distinction between achievement and success. She said that
'achievement is the knowledge that you have studied and worked hard and done
the best that is in you. Success is being praised by others, and that's
nice, too, but not as important or satisfying. Always aim for achievement
and forget about success.'
    Helen Hayes (1900 - 1993)

Reply via email to