This service provides a means to maintain connection liveness between communicating components. More...
#include <liveness.h>
Public Member Functions | |
Liveness () | |
Constructor. | |
~Liveness () | |
Destructor. | |
virtual bool | GenerateEvent (const Events::Subscription &info) const |
Generates an event for the given information. | |
virtual bool | IsEventSupported (const Events::Type type, const double requestedPeriodicRate, const Message *queryMessage, double &confirmedPeriodicRate, std::string &errorMessage) const |
Checks if the event is supported by the Service. | |
virtual bool | IsDiscoverable () const |
virtual void | Receive (const Message *message) |
Processes message received by the Service. If not supported, then message is passed to inheriting services. | |
virtual Message * | CreateMessage (const UShort messageCode) const |
Attempts to create the message desired. Only message supported by this Service can be created by this Service. | |
Static Public Attributes | |
static const std::string | Name = "urn:jaus:jss:core:Liveness" |
String name of the Service. |
This service provides a means to maintain connection liveness between communicating components.
Definition at line 56 of file liveness.h.
Liveness::Liveness | ( | ) |
Constructor.
Definition at line 53 of file liveness.cpp.
Liveness::~Liveness | ( | ) |
Destructor.
Definition at line 65 of file liveness.cpp.
Attempts to create the message desired. Only message supported by this Service can be created by this Service.
This Service supports the following message: Query Heartbeat Pulse and Report Heartbeat Pulse.
[in] | messageCode | Message to create. |
Implements JAUS::Service.
Definition at line 173 of file liveness.cpp.
bool Liveness::GenerateEvent | ( | const Events::Subscription & | info ) | const [virtual] |
Generates an event for the given information.
[in] | info | The event information (ID, Sequence #, etc.) for generation. |
Implements JAUS::Events::Child.
Definition at line 79 of file liveness.cpp.
virtual bool JAUS::Liveness::IsDiscoverable | ( | ) | const [inline, virtual] |
Implements JAUS::Service.
Definition at line 73 of file liveness.h.
bool Liveness::IsEventSupported | ( | const Events::Type | type, |
const double | requestedPeriodicRate, | ||
const Message * | queryMessage, | ||
double & | confirmedPeriodicRate, | ||
std::string & | errorMessage | ||
) | const [virtual] |
Checks if the event is supported by the Service.
[in] | type | The event type (Periodic/EveryChange). |
[in] | requestedPeriodicRate | If type == Periodic, then this is the desired update rate. |
[in] | queryMessage | The query message associated with the event. |
[out] | confirmedPeriodicRate | This is the confirmed periodic rate supported by the Service. |
[out] | errorMessage | If not supported, this is an optional error message. |
Implements JAUS::Events::Child.
Definition at line 107 of file liveness.cpp.
void Liveness::Receive | ( | const Message * | message ) | [virtual] |
Processes message received by the Service. If not supported, then message is passed to inheriting services.
This Service supports the following message: Query Heartbeat Pulse and Report Heartbeat Pulse.
[in] | message | Message data to process. |
Reimplemented from JAUS::Service.
Definition at line 134 of file liveness.cpp.
const std::string Liveness::Name = "urn:jaus:jss:core:Liveness" [static] |
String name of the Service.
Definition at line 59 of file liveness.h.