IBR-DTNSuite
0.12
|
The GTMX forwarding strategy. Using this strategy, packets are forwarding, if the neighbor has a higher predictability then the destination, but at most NF_max times. More...
#include <ProphetRoutingExtension.h>
Public Member Functions | |
GTMX_Strategy (unsigned int NF_max) | |
virtual | ~GTMX_Strategy () |
virtual bool | shallForward (const DeliveryPredictabilityMap &neighbor_dpm, const dtn::data::MetaBundle &bundle) const |
void | addForward (const dtn::data::BundleID &id) |
Public Member Functions inherited from dtn::routing::ForwardingStrategy | |
ForwardingStrategy () | |
virtual | ~ForwardingStrategy ()=0 |
bool | neighborDPIsGreater (const DeliveryPredictabilityMap &neighbor_dpm, const dtn::data::EID &destination) const |
void | setProphetRouter (ProphetRoutingExtension *router) |
Additional Inherited Members | |
Protected Attributes inherited from dtn::routing::ForwardingStrategy | |
ProphetRoutingExtension * | _prophet_router |
The GTMX forwarding strategy. Using this strategy, packets are forwarding, if the neighbor has a higher predictability then the destination, but at most NF_max times.
Definition at line 185 of file ProphetRoutingExtension.h.
|
explicit |
Definition at line 648 of file ProphetRoutingExtension.cpp.
|
virtual |
Definition at line 653 of file ProphetRoutingExtension.cpp.
void dtn::routing::ProphetRoutingExtension::GTMX_Strategy::addForward | ( | const dtn::data::BundleID & | id) |
Definition at line 657 of file ProphetRoutingExtension.cpp.
Referenced by dtn::routing::ProphetRoutingExtension::eventTransferCompleted().
|
virtual |
The prophetRoutingExtension calls this function for every bundle that can be forwarded to a neighbor and forwards it depending on the return value.
neighbor | the neighbor to forward to |
bundle | the bundle that can be forwarded |
prophet_router | Reference to the ProphetRoutingExtension to access its parameters |
Implements dtn::routing::ForwardingStrategy.
Definition at line 668 of file ProphetRoutingExtension.cpp.
References dtn::data::MetaBundle::destination.