NetworkProximityMessage.h
1 
10 #ifndef WRENCH_NETWORKPROXIMITYMESSAGE_H
11 #define WRENCH_NETWORKPROXIMITYMESSAGE_H
12 
13 #include <wrench/services/network_proximity/NetworkProximityDaemon.h>
14 #include <wrench/services/ServiceMessage.h>
15 
16 namespace wrench {
17 
18  /***********************/
20  /***********************/
21 
26  protected:
27  NetworkProximityMessage(std::string name, double payload);
28 
29  };
30 
31 
36  public:
37  NetworkProximityLookupRequestMessage(std::string answer_mailbox, std::pair<std::string,std::string> hosts, double payload);
38 
40  std::string answer_mailbox;
42  std::pair<std::string,std::string> hosts;
43  };
44 
45 
50  public:
51  NetworkProximityLookupAnswerMessage(std::pair<std::string,std::string> hosts, double proximityvalue, double payload);
52 
54  std::pair<std::string,std::string> hosts;
57  };
58 
59 
64  public:
65  NetworkProximityComputeAnswerMessage(std::pair<std::string,std::string> hosts,double proximityValue,double payload);
66 
68  std::pair<std::string,std::string> hosts;
71  };
72 
77  public:
79 
80  };
81 
86  public:
88 
91  };
92 
97  public:
98  NextContactDaemonAnswerMessage(std::string next_host_to_send,std::string next_mailbox_to_send,double payload);
99 
101  std::string next_host_to_send;
102 
104  std::string next_mailbox_to_send;
105  };
106 
111  public:
112  CoordinateLookupRequestMessage(std::string answer_mailbox, std::string requested_host, double payload);
113 
115  std::string answer_mailbox;
116 
118  std::string requested_host;
119  };
120 
125  public:
126  CoordinateLookupAnswerMessage(std::string requested_host, std::pair<double, double> xy_coordinate, double payload);
127 
129  std::string requested_host;
130 
132  std::pair<double, double> xy_coordinate;
133  };
134 
135  /***********************/
137  /***********************/
138 }
139 
140 
141 #endif //WRENCH_NETWORKPROXIMITYMESSAGE_H
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
std::string name
The message name.
Definition: SimulationMessage.h:37
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