Re: [ns] HOW TO GET THE POSITION OF NODE IN C++ CODE ??

2011-05-17 Thread Mohit Tahiliani
Hello, Please see the link below. It explains how to obtain a node position as well as energy. http://elmurod.net/?p=348 Hope it helps. Regards, Mohit P. Tahiliani

Re: [ns] HOW TO GET THE POSITION OF NODE IN C++ CODE ??

2011-05-16 Thread salahedin rehan
Hi, Try using this line: Node* node =0; node = Node::get_node_by_address(node_ID); MobileNode* nd = (MobileNode*)node; nd-getLoc(sx,sy,sz); I think u have to include “#include god.h”, hope this helps... Good luc, De: El hadi Cherkaoui

[ns] HOW TO GET THE POSITION OF NODE IN C++ CODE ??

2011-05-15 Thread El hadi Cherkaoui
--- En date de : Dim 15.5.11, El hadi Cherkaoui e_cherka...@yahoo.fr a écrit : De: El hadi Cherkaoui e_cherka...@yahoo.fr Objet: HOW TO GET THE POSITION OF NODE IN C++ CODE ?? À: NS user ns-users@ISI.EDU Date: Dimanche 15 mai 2011, 19h35 dear all I can not find the c++ instruction to get