AntHocNet 2.6.1
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
Loading...
Searching...
No Matches
anthocnet::core::IEnergy Class Referenceabstract

This node's residual energy (#145): the fraction of its initial battery left, 0..1. More...

#include <anthocnet/core/ports.h>

Inheritance diagram for anthocnet::core::IEnergy:
ahn_web::Node ns3::anthocnet::RoutingProtocol

Public Member Functions

virtual ~IEnergy ()=default
 
virtual double residualEnergyFraction () const =0
 

Detailed Description

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.

Definition at line 116 of file ports.h.

Constructor & Destructor Documentation

◆ ~IEnergy()

virtual anthocnet::core::IEnergy::~IEnergy ( )
virtualdefault

Member Function Documentation

◆ residualEnergyFraction()

virtual double anthocnet::core::IEnergy::residualEnergyFraction ( ) const
pure virtual

The documentation for this class was generated from the following file: