IBR-DTNSuite  0.10
dtn::routing::ProphetRoutingExtension::GTMX_Strategy Class Reference

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>

Inheritance diagram for dtn::routing::ProphetRoutingExtension::GTMX_Strategy:
Inheritance graph
Collaboration diagram for dtn::routing::ProphetRoutingExtension::GTMX_Strategy:
Collaboration graph

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
 

Detailed Description

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 176 of file ProphetRoutingExtension.h.

Constructor & Destructor Documentation

dtn::routing::ProphetRoutingExtension::GTMX_Strategy::GTMX_Strategy ( unsigned int  NF_max)
explicit

Definition at line 651 of file ProphetRoutingExtension.cpp.

dtn::routing::ProphetRoutingExtension::GTMX_Strategy::~GTMX_Strategy ( )
virtual

Definition at line 656 of file ProphetRoutingExtension.cpp.

Member Function Documentation

void dtn::routing::ProphetRoutingExtension::GTMX_Strategy::addForward ( const dtn::data::BundleID id)
bool dtn::routing::ProphetRoutingExtension::GTMX_Strategy::shallForward ( const DeliveryPredictabilityMap neighbor_dpm,
const dtn::data::MetaBundle bundle 
) const
virtual

The prophetRoutingExtension calls this function for every bundle that can be forwarded to a neighbor and forwards it depending on the return value.

Parameters
neighborthe neighbor to forward to
bundlethe bundle that can be forwarded
prophet_routerReference to the ProphetRoutingExtension to access its parameters
Returns
true if the bundle should be forwarded

Implements dtn::routing::ForwardingStrategy.

Definition at line 671 of file ProphetRoutingExtension.cpp.

References dtn::data::MetaBundle::destination.


The documentation for this class was generated from the following files: