IBR-DTNSuite
0.10
|
The GRTR forwarding strategy. Using this strategy, packets are forwarding, if the neighbor has a higher predictability then the destination. More...
#include <ProphetRoutingExtension.h>
Public Member Functions | |
GRTR_Strategy () | |
virtual | ~GRTR_Strategy () |
virtual bool | shallForward (const DeliveryPredictabilityMap &neighbor_dpm, const dtn::data::MetaBundle &bundle) const |
![]() | |
ForwardingStrategy () | |
virtual | ~ForwardingStrategy ()=0 |
bool | neighborDPIsGreater (const DeliveryPredictabilityMap &neighbor_dpm, const dtn::data::EID &destination) const |
void | setProphetRouter (ProphetRoutingExtension *router) |
Additional Inherited Members | |
![]() | |
ProphetRoutingExtension * | _prophet_router |
The GRTR forwarding strategy. Using this strategy, packets are forwarding, if the neighbor has a higher predictability then the destination.
Definition at line 162 of file ProphetRoutingExtension.h.
|
explicit |
Definition at line 638 of file ProphetRoutingExtension.cpp.
|
virtual |
Definition at line 642 of file ProphetRoutingExtension.cpp.
|
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 646 of file ProphetRoutingExtension.cpp.
References dtn::data::MetaBundle::destination.