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

Per-neighbour link quality (#181, ADR-0024). More...

#include <anthocnet/core/ports.h>

Inheritance diagram for anthocnet::core::ILinkQuality:
ns3::anthocnet::RoutingProtocol

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.
 

Detailed Description

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.

Definition at line 90 of file ports.h.

Constructor & Destructor Documentation

◆ ~ILinkQuality()

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

Member Function Documentation

◆ sinrDbFrom()

virtual double anthocnet::core::ILinkQuality::sinrDbFrom ( NodeAddress  neighbor) const
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.


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