00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef SEMAINE_COMPONENTS_DUMMY_GENERICTESTCOMPONENTS_H
00011 #define SEMAINE_COMPONENTS_DUMMY_GENERICTESTCOMPONENTS_H
00012
00013 #include <semaine/config.h>
00014
00015 #include <cms/CMSException.h>
00016
00017 #include <semaine/components/Component.h>
00018 #include <semaine/cms/message/SEMAINEMessage.h>
00019
00020 using namespace cms;
00021 using namespace semaine::components;
00022 using namespace semaine::cms::message;
00023
00024 namespace semaine {
00025 namespace components {
00026 namespace dummy {
00027
00028 class GenericTestComponent : public Component
00029 {
00030 public:
00031 GenericTestComponent(const std::string & name, const std::string & receiveTopic, const std::string & sendTopic)
00032 throw(CMSException);
00033 ~GenericTestComponent();
00034
00035 protected:
00036 virtual void act() throw(CMSException);
00037 virtual void react(SEMAINEMessage * message) throw(CMSException);
00038
00039 private:
00040 int boredTime;
00041 long long lastMessageTime;
00042
00043 };
00044
00045
00046 }
00047 }
00048 }
00049
00050
00051
00052 #endif
00053