|
AntHocNet 2.6.1
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
|
Per-neighbour link quality (#181, ADR-0024). More...
#include <anthocnet/core/ports.h>
Public Member Functions | |
| virtual | ~ILinkQuality ()=default |
| virtual double | sinrDbFrom (NodeAddress neighbor) const =0 |
Signal-to-interference-and-noise ratio (dB) of the frames this node most recently received from neighbor. | |
Per-neighbour link quality (#181, ADR-0024).
ILinkState is node-scoped (this node's queue and service time); signal quality is a property of one link, so it gets its own port. Only metrics that ask for it read it (ILinkMetric::usesLinkQuality); with no port injected those metrics treat every link as good, so a missing adapter degrades to hop count.
|
virtualdefault |
|
pure virtual |
Signal-to-interference-and-noise ratio (dB) of the frames this node most recently received from neighbor.
Returns NaN when there is no sample yet: a link never heard on must not read as a bad link, or a new neighbour would be penalised until it happened to send.