Re: [ns] Node id_

2006-01-13 Thread Hajer FERJANI

Hi,
To have the current positions of a node you need to do :

MobileNode* mnode_;

double x = 0.0,y = 0.0,z = 0.0;
mnode_-getLoc(x, y, z);

You should have mnode_ referencing to a node. For example, in my case I pass
the node address to my agent in the tcl script and for this reason i defined
a new node command in the Command( ) method of the agent like this :

if(strcmp(argv[1], node) == 0) {
mnode_ = (MobileNode*) TclObject::lookup(argv[2]);
if(mnode_ == 0)
return TCL_ERROR;
return TCL_OK;
}

Hope this helps.

Bye.


On 1/10/06, Christoph Schroth [EMAIL PROTECTED] wrote:


 Hi all,


 I actually have a very similar problem and also woul like to get to
 To know the current node I am in from the Interface Queue, for example.

 How can I find out the node id and other related data such as mobile
 node
 Position etc.?


 Thank you so much,


 Christoph



[ns] Node id_

2006-01-10 Thread Christoph Schroth

Hi all,
 
 
I actually have a very similar problem and also woul like to get to
To know the current node I am in from the Interface Queue, for example.
 
How can I find out the node id and other related data such as mobile
node 
Position etc.?
 
 
Thank you so much,
 
 
Christoph