wrench::CoordinateLookupAnswerMessage Class Reference

A message sent by a NetworkProximityService in answer to a coordinate lookup request. More...

#include <NetworkProximityMessage.h>

Inheritance diagram for wrench::CoordinateLookupAnswerMessage:
wrench::NetworkProximityMessage wrench::ServiceMessage wrench::SimulationMessage

Public Member Functions

 CoordinateLookupAnswerMessage (std::string requested_host, bool success, std::pair< double, double > xy_coordinate, double timestamp, double payload)
 Constructor. More...
 
- Public Member Functions inherited from wrench::SimulationMessage
 SimulationMessage (std::string name, double payload)
 Constructor. More...
 
virtual std::string getName ()
 Retrieve the message name. 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.
 
- Public Attributes inherited from wrench::SimulationMessage
std::string name
 The message name.
 
double payload
 The message size in bytes.
 

Additional Inherited Members

- Protected Member Functions inherited from wrench::NetworkProximityMessage
 NetworkProximityMessage (std::string name, double payload)
 Constructor. More...
 
- Protected Member Functions inherited from wrench::ServiceMessage
 ServiceMessage (std::string name, double payload)
 Constructor. More...
 

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_hostthe name of the host whose coordinates are being requested
successwhether coordinates where found or not
xy_coordinatethe (x,y) coordinate of the host
timestampthe timestamp for the coordinates
payloadthe message size in bytes

The documentation for this class was generated from the following files: