10 #ifndef WRENCH_NETWORKDAEMONS_H
11 #define WRENCH_NETWORKDAEMONS_H
14 #include "wrench/services/Service.h"
15 #include "wrench/services/network_proximity/NetworkProximityServiceProperty.h"
16 #include "wrench/services/network_proximity/NetworkProximityServiceMessagePayload.h"
33 std::string network_proximity_service_mailbox,
34 double message_size,
double measurement_period,
42 std::string network_proximity_service_mailbox,
43 double message_size,
double measurement_period,
48 double measurement_period;
52 std::string next_mailbox_to_send;
53 std::shared_ptr<NetworkProximityDaemon> next_daemon_to_send;
54 std::string next_host_to_send;
55 std::string network_proximity_service_mailbox;
58 void cleanup(
bool has_returned_from_main,
int return_value)
override;
61 double getTimeUntilNextMeasurement();
63 bool processNextMessage(
double timeout);
72 #endif //WRENCH_NETWORKDAEMONS_H
NetworkProximityDaemon(Simulation *simulation, std::string hostname, std::string network_proximity_service_mailbox, double message_size, double measurement_period, double noise, std::map< std::string, double > messagepayload_list)
Constructor.
Definition: NetworkProximityDaemon.cpp:35
std::map< std::string, double > messagepayload_list
The service's messagepayload list.
Definition: Service.h:112
std::string hostname
The name of the host on which the daemon is running.
Definition: S4U_Daemon.h:51
A class that provides basic simulation methods. Once the simulation object has been explicitly or imp...
Definition: Simulation.h:46
A daemon used by a NetworkProximityService to run network measurements (proximity is computed between...
Definition: NetworkProximityDaemon.h:29
A service that can be added to the simulation and that can be used by a WMS when executing a workflow...
Definition: Service.h:26
Simulation * simulation
a pointer to the simulation object
Definition: S4U_Daemon.h:105