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

Maps an observation to a pheromone (goodness; higher == better). More...

#include <anthocnet/core/link_metric.h>

Inheritance diagram for anthocnet::core::ILinkMetric:
anthocnet::core::ClassicMetric anthocnet::core::EnergyMetric anthocnet::core::SinrMetric

Public Member Functions

virtual ~ILinkMetric ()=default
 
virtual double pheromone (const LinkObservation &obs) const =0
 
virtual bool usesLinkQuality () const
 True when the metric's per-hop cost is a link-quality cost (#181) rather than a time.
 
virtual double hopCost (const HopSignals &) const
 The cost of one of this node's own links, for a metric that usesLinkQuality(): the per-hop value a node writes into the hop a backward ant came over, and adds wherever it extends a path by one hop.
 

Detailed Description

Maps an observation to a pheromone (goodness; higher == better).

Definition at line 45 of file link_metric.h.

Constructor & Destructor Documentation

◆ ~ILinkMetric()

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

Member Function Documentation

◆ pheromone()

virtual double anthocnet::core::ILinkMetric::pheromone ( const LinkObservation &  obs) const
pure virtual

◆ usesLinkQuality()

virtual bool anthocnet::core::ILinkMetric::usesLinkQuality ( ) const
inlinevirtual

True when the metric's per-hop cost is a link-quality cost (#181) rather than a time.

The router then has each node put its own estimate of the link it received a backward ant over into that hop of the retraced path (thesis §4.2.2: "the reactive backward ant reads at each node i the local estimate c_i^n of the cost to go from i to the next hop n"), and uses the same link cost wherever it adds one hop to a path.

Reimplemented in anthocnet::core::SinrMetric, and anthocnet::core::EnergyMetric.

Definition at line 54 of file link_metric.h.

◆ hopCost()

virtual double anthocnet::core::ILinkMetric::hopCost ( const HopSignals &  ) const
inlinevirtual

The cost of one of this node's own links, for a metric that usesLinkQuality(): the per-hop value a node writes into the hop a backward ant came over, and adds wherever it extends a path by one hop.

Never called for a metric that does not use link quality.

Reimplemented in anthocnet::core::SinrMetric, and anthocnet::core::EnergyMetric.

Definition at line 59 of file link_metric.h.


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