NetworkProximityMessage.h
37 NetworkProximityLookupRequestMessage(std::string answer_mailbox, std::pair<std::string,std::string> hosts, double payload);
51 NetworkProximityLookupAnswerMessage(std::pair<std::string,std::string> hosts, double proximityvalue, double payload);
65 NetworkProximityComputeAnswerMessage(std::pair<std::string,std::string> hosts,double proximityValue,double payload);
98 NextContactDaemonAnswerMessage(std::string next_host_to_send,std::string next_mailbox_to_send,double payload);
112 CoordinateLookupRequestMessage(std::string answer_mailbox, std::string requested_host, double payload);
126 CoordinateLookupAnswerMessage(std::string requested_host, std::pair<double, double> xy_coordinate, double payload);
std::string next_mailbox_to_send
The next mailbox for the network daemon to contact.
Definition: NetworkProximityMessage.h:104
double proximityValue
The computed proximityValue.
Definition: NetworkProximityMessage.h:70
A message received by a NetworkProximityService that updates its database of proximity values...
Definition: NetworkProximityMessage.h:63
A message sent by a NetworkProximityService to a NetworkProximityDaemon to tell it which other Networ...
Definition: NetworkProximityMessage.h:96
NetworkProximityMessage(std::string name, double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:18
A message sent to a NetworkProximityService to request a network proximity lookup.
Definition: NetworkProximityMessage.h:35
double payload
The message size in bytes.
Definition: SimulationMessage.h:39
std::string requested_host
The name of the host whose coordinates are being requested.
Definition: NetworkProximityMessage.h:118
double proximityValue
The calculated proximity value.
Definition: NetworkProximityMessage.h:56
std::string answer_mailbox
The mailbox to which the answer should be sent back.
Definition: NetworkProximityMessage.h:115
Top-level class for messages received/sent by a NetworkProximityService.
Definition: NetworkProximityMessage.h:25
A daemon used by a NetworkProximityService to run network measurements (proximity is computed between...
Definition: NetworkProximityDaemon.h:29
NetworkProximityDaemon * daemon
The NetworkProximityDaemon daemon to return the answer to.
Definition: NetworkProximityMessage.h:90
A message sent to a NetworkProximityService to request a coordinate lookup.
Definition: NetworkProximityMessage.h:110
Top-level class for messages received/sent by a Service.
Definition: ServiceMessage.h:27
std::pair< std::string, std::string > hosts
The hosts whose proximity values were calculated.
Definition: NetworkProximityMessage.h:68
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: NetworkProximityMessage.h:40
A message sent by a NetworkProximityService in answer to a network proximity lookup request...
Definition: NetworkProximityMessage.h:49
std::string requested_host
The name of the host whose coordinates were requested.
Definition: NetworkProximityMessage.h:129
A message sent to a NetworkProximityService by a NetworkProximityDaemon to ask which other NetworkPro...
Definition: NetworkProximityMessage.h:85
std::string next_host_to_send
The next host for the NetworkProximityDaemon to contact.
Definition: NetworkProximityMessage.h:101
A message sent between NetworkProximityDaemon processes to perform network measurements.
Definition: NetworkProximityMessage.h:76
std::pair< std::string, std::string > hosts
The hosts whose proximity values were calculated.
Definition: NetworkProximityMessage.h:54
A message sent by a NetworkProximityService in answer to a coordinate lookup request.
Definition: NetworkProximityMessage.h:124
std::pair< std::string, std::string > hosts
The hosts between which to calculate a proximity value.
Definition: NetworkProximityMessage.h:42
std::pair< double, double > xy_coordinate
The current (x,y) coordinates of the requested host.
Definition: NetworkProximityMessage.h:132
Definition: TerminalOutput.cpp:15