AntHocNet 2.0.0
Paper-faithful ant-colony ad hoc routing: the shared core and its adapters
Loading...
Searching...
No Matches
anthocnet::core::RouteDecision Struct Reference

#include <anthocnet/core/route_decision.h>

Static Public Member Functions

static RouteDecision drop ()
 
static RouteDecision none ()
 
static RouteDecision deliver ()
 

Public Attributes

RouteAction action = RouteAction::None
 
NodeAddress nextHop = kInvalidAddress
 
bool hasMessage = false
 Whether message is populated.
 
AntMessage message
 Ant to emit (Unicast/Broadcast).
 

Detailed Description

Definition at line 32 of file route_decision.h.

Member Function Documentation

◆ drop()

static RouteDecision anthocnet::core::RouteDecision::drop ( )
inlinestatic

Definition at line 38 of file route_decision.h.

References anthocnet::core::Drop, and anthocnet::core::kInvalidAddress.

◆ none()

static RouteDecision anthocnet::core::RouteDecision::none ( )
inlinestatic

Definition at line 39 of file route_decision.h.

References anthocnet::core::kInvalidAddress, and anthocnet::core::None.

◆ deliver()

static RouteDecision anthocnet::core::RouteDecision::deliver ( )
inlinestatic

Definition at line 40 of file route_decision.h.

References anthocnet::core::Deliver, and anthocnet::core::kInvalidAddress.

Member Data Documentation

◆ action

RouteAction anthocnet::core::RouteDecision::action = RouteAction::None

Definition at line 33 of file route_decision.h.

◆ nextHop

NodeAddress anthocnet::core::RouteDecision::nextHop = kInvalidAddress

Definition at line 34 of file route_decision.h.

◆ hasMessage

bool anthocnet::core::RouteDecision::hasMessage = false

Whether message is populated.

Definition at line 35 of file route_decision.h.

◆ message

AntMessage anthocnet::core::RouteDecision::message

Ant to emit (Unicast/Broadcast).

Definition at line 36 of file route_decision.h.


The documentation for this struct was generated from the following file: