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, std::pair< double, double > xy_coordinate, 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.
 
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,
std::pair< double, double >  xy_coordinate,
double  payload 
)

Constructor.

Parameters
requested_hostthe name of the host whose coordinates are being requested
xy_coordinatethe (x,y) coordinate of the host
payloadthe message size in bytes

The documentation for this class was generated from the following files:
  • /Users/rafsilva/Documents/isi/workspace/wrench/wrench/src/wrench/services/network_proximity/NetworkProximityMessage.h
  • /Users/rafsilva/Documents/isi/workspace/wrench/wrench/src/wrench/services/network_proximity/NetworkProximityMessage.cpp