00001 /* 00002 * RequeueBundleEvent.h 00003 * 00004 * Created on: 15.02.2010 00005 * Author: morgenro 00006 */ 00007 00008 #ifndef REQUEUEBUNDLEEVENT_H_ 00009 #define REQUEUEBUNDLEEVENT_H_ 00010 00011 #include "core/Event.h" 00012 #include "ibrdtn/data/Bundle.h" 00013 #include "ibrdtn/data/BundleID.h" 00014 #include "ibrdtn/data/EID.h" 00015 00016 namespace dtn 00017 { 00018 namespace routing 00019 { 00020 class RequeueBundleEvent : public dtn::core::Event 00021 { 00022 public: 00023 virtual ~RequeueBundleEvent(); 00024 00025 const string getName() const; 00026 00027 string toString() const; 00028 00029 static const string className; 00030 00031 static void raise(const dtn::data::EID peer, const dtn::data::Bundle &bundle); 00032 static void raise(const dtn::data::EID peer, const dtn::data::BundleID &id); 00033 00034 dtn::data::EID _peer; 00035 dtn::data::BundleID _bundle; 00036 00037 private: 00038 RequeueBundleEvent(const dtn::data::EID peer, const dtn::data::BundleID &id); 00039 }; 00040 } 00041 } 00042 00043 00044 #endif /* REQUEUEBUNDLEEVENT_H_ */
1.6.3