22 #ifndef PROPHETROUTINGEXTENSION_H_
23 #define PROPHETROUTINGEXTENSION_H_
54 static const std::string TAG;
58 float p_first_threshold,
float beta,
float gamma,
float delta,
59 size_t time_unit,
size_t i_typ,
90 virtual
void run() throw ();
97 void updateNeighbor(const dtn::data::EID& neighbor);
109 ibrcommon::Mutex _next_exchange_mutex;
110 dtn::data::
Timestamp _next_exchange_timeout;
111 dtn::data::
Timestamp _next_exchange_timestamp;
116 float p_encounter(const dtn::data::EID &neighbor) const;
118 float _p_encounter_max;
119 float _p_encounter_first;
120 float _p_first_threshold;
124 typedef std::map<dtn::data::EID, dtn::data::
Timestamp> age_map;
131 virtual std::string toString()
const = 0;
134 class SearchNextBundleTask :
public Task
138 virtual ~SearchNextBundleTask();
140 virtual std::string toString()
const;
145 class NextExchangeTask :
public Task
149 virtual ~NextExchangeTask();
151 virtual std::string toString()
const;
186 unsigned int _NF_max;
188 typedef std::map<dtn::data::BundleID, unsigned int> nf_map;
195 #endif // PROPHETROUTINGEXTENSION_H_