IBR-DTNSuite  0.10
ForwardingStrategy.h
Go to the documentation of this file.
1 /*
2  * ForwardingStrategy.h
3  *
4  * Created on: 11.01.2013
5  * Author: morgenro
6  */
7 
8 #ifndef FORWARDINGSTRATEGY_H_
9 #define FORWARDINGSTRATEGY_H_
10 
12 #include <ibrdtn/data/MetaBundle.h>
13 #include <ibrdtn/data/EID.h>
14 
15 namespace dtn
16 {
17  namespace routing
18  {
19  class ProphetRoutingExtension;
20 
25  {
26  public:
28  virtual ~ForwardingStrategy() = 0;
37  virtual bool shallForward(const DeliveryPredictabilityMap& neighbor_dpm, const dtn::data::MetaBundle& bundle) const = 0;
41  bool neighborDPIsGreater(const DeliveryPredictabilityMap& neighbor_dpm, const dtn::data::EID& destination) const;
42 
47 
48  protected:
50  };
51  } /* namespace routing */
52 } /* namespace dtn */
53 #endif /* FORWARDINGSTRATEGY_H_ */