A message sent by a NetworkProximityService in answer to a coordinate lookup request. More...
#include <NetworkProximityMessage.h>
Public Member Functions | |
CoordinateLookupAnswerMessage (std::string requested_host, bool success, std::pair< double, double > xy_coordinate, double timestamp, double payload) | |
Constructor. More... | |
Public Attributes | |
std::string | requested_host |
The name of the host whose coordinates were requested | |
bool | success |
Whether the lookup was successful or not. | |
double | timestamp |
The timestamp of the oldest measurement data used to calculate the proximity value. | |
std::pair< double, double > | xy_coordinate |
The current (x,y) coordinates of the requested host. | |
Additional Inherited Members |
Detailed Description
A message sent by a NetworkProximityService in answer to a coordinate lookup request.
Constructor & Destructor Documentation
◆ CoordinateLookupAnswerMessage()
wrench::CoordinateLookupAnswerMessage::CoordinateLookupAnswerMessage | ( | std::string | requested_host, |
bool | success, | ||
std::pair< double, double > | xy_coordinate, | ||
double | timestamp, | ||
double | payload | ||
) |
Constructor.
- Parameters
-
requested_host the name of the host whose coordinates are being requested success whether coordinates where found or not xy_coordinate the (x,y) coordinate of the host timestamp the timestamp for the coordinates payload the message size in bytes
The documentation for this class was generated from the following files:
- NetworkProximityMessage.h
- NetworkProximityMessage.cpp