|
AntHocNet 2.6.1
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
|
This node's residual energy (#145): the fraction of its initial battery left, 0..1. More...
#include <anthocnet/core/ports.h>
Public Member Functions | |
| virtual | ~IEnergy ()=default |
| virtual double | residualEnergyFraction () const =0 |
This node's residual energy (#145): the fraction of its initial battery left, 0..1.
NaN when the adapter has no energy model, which the energy metric reads as "no evidence", so the metric degrades to hop count.
|
virtualdefault |
|
pure virtual |
Implemented in ns3::anthocnet::RoutingProtocol, and ahn_web::Node.