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
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 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
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer message should be sent.
Definition: NetworkProximityMessage.h:41
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer should be sent back.
Definition: NetworkProximityMessage.h:125
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:67
NetworkProximityLookupRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, std::pair< std::string, std::string > hosts, double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:29
std::string requested_host
The name of the host whose coordinates were requested
Definition: NetworkProximityMessage.h:140
Definition: Action.cpp:28
double proximity_value
The calculated proximity value.
Definition: NetworkProximityMessage.h:58
NetworkProximityTransferMessage(double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:115
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 name.
Definition: SimulationMessage.h:40
NetworkProximityMessage(double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:18
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
CoordinateLookupRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, std::string requested_host, double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:125
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:48
CoordinateLookupAnswerMessage(std::string requested_host, bool success, std::pair< double, double > xy_coordinate, double timestamp, double payload)
Constructor.
Definition: NetworkProximityMessage.cpp:142
A message sent between NetworkProximityDaemon processes to perform network measurements.
Definition: NetworkProximityMessage.h:81