00001 /* 00002 * RouteEvent.h 00003 * 00004 * Created on: 06.03.2009 00005 * Author: morgenro 00006 */ 00007 00008 #ifndef ROUTEEVENT_H_ 00009 #define ROUTEEVENT_H_ 00010 00011 #include <string> 00012 #include "data/Bundle.h" 00013 #include "core/Event.h" 00014 #include "core/BundleSchedule.h" 00015 #include "core/Node.h" 00016 00017 using namespace dtn::data; 00018 using namespace dtn::core; 00019 using namespace std; 00020 00021 namespace dtn 00022 { 00023 namespace core 00024 { 00025 enum EventRouteAction 00026 { 00027 ROUTE_PROCESS_BUNDLE = 0 00028 }; 00029 00030 class RouteEvent : public Event 00031 { 00032 public: 00033 RouteEvent(const Bundle &bundle, const EventRouteAction action); 00034 ~RouteEvent(); 00035 00036 EventRouteAction getAction() const; 00037 const Bundle& getBundle() const; 00038 const string getName() const; 00039 const EventType getType() const; 00040 00041 #ifdef DO_DEBUG_OUTPUT 00042 string toString(); 00043 #endif 00044 00045 static const string className; 00046 00047 private: 00048 const Bundle &m_bundle; 00049 const EventRouteAction m_action; 00050 }; 00051 } 00052 } 00053 00054 #endif /* ROUTEEVENT_H_ */
1.5.6