- first you must configure energy module in node configuration within tcl file
"after you configure it, energy trace will appear in trace file"
- then you must work in aodv.cc file in forward function
you can get current node energy
if you want to know neighbors node energy, you must include node remaining energy in every sending packet, and update neighbor table with new energy upon reception. then you can use this energy information in selecting next_hop for routing.