IBR-DTNSuite
0.12
Main Page
Namespaces
Classes
Files
File List
File Members
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
11
#include "
routing/prophet/DeliveryPredictabilityMap.h
"
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
24
class
ForwardingStrategy
25
{
26
public
:
27
ForwardingStrategy
();
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
46
void
setProphetRouter
(
ProphetRoutingExtension
*router);
47
48
protected
:
49
ProphetRoutingExtension
*
_prophet_router
;
50
};
51
}
/* namespace routing */
52
}
/* namespace dtn */
53
#endif
/* FORWARDINGSTRATEGY_H_ */
daemon
src
routing
prophet
ForwardingStrategy.h
Generated on Thu Mar 27 2014 09:26:20 for IBR-DTNSuite by
1.8.4