[ns] Re: Energy of a node

M.Rajesh Kumar rajesh_30_ssn at yahoo.com
Sun Feb 22 16:35:22 PST 2004


Hi ,
You can use this to get the power at a mobile node:

 Node *thisnode;
 thisnode=Node::get_node_by_address(index);
 double energy;
 energy=thisnode->energy_model()->energy();

U should use enegymodel.h file found in  "ns-2.2.6/mobile" folder

cheers,
Rajesh Kumar M

 


---------------------------------
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gamma.isi.edu/pipermail/ns-users/attachments/20040222/bb4b3a9b/attachment.html


More information about the Ns-users mailing list