Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef __JAUS_CORE_LIVENESS__H
00041 #define __JAUS_CORE_LIVENESS__H
00042
00043 #include "jaus/core/events/events.h"
00044 #include "jaus/core/liveness/queryheartbeatpulse.h"
00045 #include "jaus/core/liveness/reportheartbeatpulse.h"
00046
00047 namespace JAUS
00048 {
00056 class JAUS_CORE_DLL Liveness : public Events::Child
00057 {
00058 public:
00059 const static std::string Name;
00060
00061 Liveness();
00062
00063 ~Liveness();
00064
00065 virtual bool GenerateEvent(const Events::Subscription& info) const;
00066
00067 virtual bool IsEventSupported(const Events::Type type,
00068 const double requestedPeriodicRate,
00069 const Message* queryMessage,
00070 double& confirmedPeriodicRate,
00071 std::string& errorMessage) const;
00072
00073 virtual bool IsDiscoverable() const { return true; }
00074
00075 virtual void Receive(const Message* message);
00076
00077 virtual Message* CreateMessage(const UShort messageCode) const;
00078 };
00079 }
00080
00081 #endif
00082