11#ifndef ANTHOCNET_CORE_ANT_MESSAGE_H
12#define ANTHOCNET_CORE_ANT_MESSAGE_H
constexpr NodeAddress kInvalidAddress
"No such node / no route" sentinel, mirroring the legacy use of -1.
std::int32_t NodeAddress
Network-layer node address.
std::vector< AntHop > VisitedPath
AntDirection
Travel direction.
@ LinkFail
link-failure notification (payload in helloDests).
AntHistoryTracker: (src, seqNum) duplicate detection.
Complete, copyable description of an ant packet.
NodeAddress src
Originating node.
double timeStart
Generation time, for trip-time accounting.
NodeAddress dst
Final destination.
std::uint32_t seqNum
Widened from the original u_int8_t so it does not wrap after 256 ants (which silently broke (src,...
double pathTime
accumulated time estimate (was prevSINR).
int broadcastBudget
Remaining number of times this ant may be (re)broadcast.
VisitedPath history
Back-ant stack: path being reinforced.
double lifeAnt
Repair-ant lifetime budget (seconds).
VisitedPath visited
Forward stack: nodes seen on the way out.
std::vector< HelloDest > helloDests
Hello-ant adverts.
A (destination, pheromone) advert carried by a hello ant for building the virtual pheromone table.