|
AntHocNet 2.6.1
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
|
The canonical AntHocNet metric (Eq.2): blend the path-time estimate with the hop-count estimate and invert. More...
#include <anthocnet/core/link_metric.h>
Public Member Functions | |
| double | pheromone (const LinkObservation &o) const override |
Public Member Functions inherited from anthocnet::core::ILinkMetric | |
| virtual | ~ILinkMetric ()=default |
| 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. | |
The canonical AntHocNet metric (Eq.2): blend the path-time estimate with the hop-count estimate and invert.
Identical to the post-item-02 inline formula.
Definition at line 64 of file link_metric.h.
|
inlineoverridevirtual |
Implements anthocnet::core::ILinkMetric.
Definition at line 65 of file link_metric.h.
References anthocnet::core::LinkObservation::hops, anthocnet::core::LinkObservation::hopTime, and anthocnet::core::LinkObservation::pathTime.