|
AntHocNet 2.6.1
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
|
Maps an observation to a pheromone (goodness; higher == better). More...
#include <anthocnet/core/link_metric.h>
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. | |
Maps an observation to a pheromone (goodness; higher == better).
Definition at line 45 of file link_metric.h.
|
virtualdefault |
|
pure virtual |
Implemented in anthocnet::core::ClassicMetric, anthocnet::core::SinrMetric, and anthocnet::core::EnergyMetric.
|
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.
|
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.