AntHocNet 2.0.0
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
Loading...
Searching...
No Matches
link_metric_registry.h File Reference
#include <string>
#include "anthocnet/core/link_metric.h"

Go to the source code of this file.

Namespaces

namespace  anthocnet
 AntHistoryTracker: (src, seqNum) duplicate detection.
 
namespace  anthocnet::core
 
namespace  anthocnet::core::metrics
 

Functions

std::string anthocnet::core::metrics::registeredNames ()
 Every registered name, comma-separated — for diagnostics and for the adapters' "valid values" help text (child #144).
 
const ILinkMetric * anthocnet::core::metrics::find (const std::string &name)
 Look up name; returns nullptr when it is not registered.
 
const ILinkMetric & anthocnet::core::metrics::get (const std::string &name)
 Look up name, or throw std::invalid_argument naming the offending value and the registered alternatives.
 

Variables

constexpr char anthocnet::core::metrics::kClassic [] = "classic"
 Registry name of the canonical AntHocNet metric (Eq.2, ClassicMetric).