IBR-DTNSuite  0.8
daemon/src/routing/RequeueBundleEvent.cpp
Go to the documentation of this file.
00001 /*
00002  * RequeueBundleEvent.cpp
00003  *
00004  *  Created on: 15.02.2010
00005  *      Author: morgenro
00006  */
00007 
00008 #include "routing/RequeueBundleEvent.h"
00009 #include "core/BundleCore.h"
00010 
00011 namespace dtn
00012 {
00013         namespace routing
00014         {
00015                 RequeueBundleEvent::RequeueBundleEvent(const dtn::data::EID peer, const dtn::data::BundleID &id)
00016                  : _peer(peer), _bundle(id)
00017                 {
00018 
00019                 }
00020 
00021                 RequeueBundleEvent::~RequeueBundleEvent()
00022                 {
00023 
00024                 }
00025 
00026                 void RequeueBundleEvent::raise(const dtn::data::EID peer, const dtn::data::BundleID &id)
00027                 {
00028                         // raise the new event
00029                         raiseEvent( new RequeueBundleEvent(peer, id) );
00030                 }
00031 
00032                 const string RequeueBundleEvent::getName() const
00033                 {
00034                         return RequeueBundleEvent::className;
00035                 }
00036 
00037                 string RequeueBundleEvent::toString() const
00038                 {
00039                         return className + ": Bundle requeued " + _bundle.toString();
00040                 }
00041 
00042                 const string RequeueBundleEvent::className = "RequeueBundleEvent";
00043         }
00044 }