AntHocNet 2.6.1
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
Loading...
Searching...
No Matches
link_lifetime.h File Reference
#include <cmath>
#include <limits>
#include "anthocnet/core/types.h"

Go to the source code of this file.

Namespaces

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

Functions

double anthocnet::core::linkExpiryTime (const Kinematics &a, const Kinematics &b, double range)
 Seconds until a and b are range metres apart, moving as they move now.
 
double anthocnet::core::linkLifetimeWeight (double let, double horizon, double floor)
 The next-hop weight for a link expected to live let seconds: 1 at or beyond horizon, falling linearly below it, never under floor (a short link is discouraged, not removed: if every link is short the choice among them is the pheromone's).