10 #ifndef WRENCH_NETWORKPROXIMITYMESSAGE_H
11 #define WRENCH_NETWORKPROXIMITYMESSAGE_H
13 #include <wrench/services/network_proximity/NetworkProximityDaemon.h>
14 #include <wrench/services/ServiceMessage.h>
43 std::pair<std::string, std::string>
hosts;
56 std::pair<std::string, std::string>
hosts;
73 std::pair<std::string, std::string>
hosts;
95 std::shared_ptr<NetworkProximityDaemon>
daemon;
157 #endif //WRENCH_NETWORKPROXIMITYMESSAGE_H
std::pair< std::string, std::string > hosts
The hosts whose proximity values were calculated.
Definition: NetworkProximityMessage.h:56
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: NetworkProximityMessage.h:41
double timestamp
The timestamp of the oldest measurement data used to calculate the proximity value.
Definition: NetworkProximityMessage.h:60
A message sent to a NetworkProximityService to request a coordinate lookup.
Definition: NetworkProximityMessage.h:120
A message sent by a NetworkProximityService in answer to a network proximity lookup request.
Definition: NetworkProximityMessage.h:50
std::string name
The message name.
Definition: SimulationMessage.h:37
std::string requested_host
The name of the host whose coordinates are being requested.
Definition: NetworkProximityMessage.h:128
double timestamp
The timestamp of the oldest measurement data used to calculate the proximity value.
Definition: NetworkProximityMessage.h:148
bool success
Whether the lookup was successful or not.
Definition: NetworkProximityMessage.h:143
NetworkProximityMessage(std::string name, double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:18
Top-level class for messages received/sent by a Service.
Definition: ServiceMessage.h:27
NetworkProximityComputeAnswerMessage(std::pair< std::string, std::string > hosts, double proximity_value, double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:69
std::string requested_host
The name of the host whose coordinates were requested
Definition: NetworkProximityMessage.h:140
double proximity_value
The calculated proximity value.
Definition: NetworkProximityMessage.h:58
NetworkProximityTransferMessage(double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:117
std::pair< std::string, std::string > hosts
The hosts whose proximity values were calculated.
Definition: NetworkProximityMessage.h:73
double proximity_value
The computed proximity value.
Definition: NetworkProximityMessage.h:75
double payload
The message size in bytes.
Definition: SimulationMessage.h:39
std::string answer_mailbox
The mailbox to which the answer should be sent back.
Definition: NetworkProximityMessage.h:125
std::pair< std::string, std::string > hosts
The hosts between which to calculate a proximity value.
Definition: NetworkProximityMessage.h:43
A message sent by a NetworkProximityService in answer to a coordinate lookup request.
Definition: NetworkProximityMessage.h:134
std::pair< double, double > xy_coordinate
The current (x,y) coordinates of the requested host.
Definition: NetworkProximityMessage.h:146
NetworkProximityLookupRequestMessage(std::string answer_mailbox, std::pair< std::string, std::string > hosts, double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:29
CoordinateLookupRequestMessage(std::string answer_mailbox, std::string requested_host, double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:127
A message received by a NetworkProximityService that updates its database of proximity values.
Definition: NetworkProximityMessage.h:67
A message sent to a NetworkProximityService to request a network proximity lookup.
Definition: NetworkProximityMessage.h:35
Top-level class for messages received/sent by a NetworkProximityService.
Definition: NetworkProximityMessage.h:25
NetworkProximityLookupAnswerMessage(std::pair< std::string, std::string > hosts, double proximity_value, double timestamp, double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:50
CoordinateLookupAnswerMessage(std::string requested_host, bool success, std::pair< double, double > xy_coordinate, double timestamp, double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:146
A message sent between NetworkProximityDaemon processes to perform network measurements.
Definition: NetworkProximityMessage.h:81