HostStateChangeDetectorMessage.h
1 
11 #ifndef WRENCH_HOSTSTATECHANGEDETECTORMESSAGE_H
12 #define WRENCH_HOSTSTATECHANGEDETECTORMESSAGE_H
13 
14 
15 #include <wrench/simulation/SimulationMessage.h>
16 #include <wrench-dev.h>
17 
18 namespace wrench {
19 
20 
21  /***********************/
23  /***********************/
24 
29  protected:
30  explicit HostStateChangeDetectorMessage(std::string name);
31  };
32 
37  public:
38  explicit HostHasTurnedOnMessage(std::string hostname);
40  std::string hostname;
41  };
42 
47  public:
48  explicit HostHasTurnedOffMessage(std::string hostname);
50  std::string hostname;
51  };
52 
57  public:
58  explicit HostHasChangedSpeedMessage(std::string hostname, double speed);
60  std::string hostname;
62  double speed;
63  };
64 
65  /***********************/
67  /***********************/
68 
69 };
70 
71 #endif //WRENCH_HOSTSTATECHANGEDETECTORMESSAGE_H
std::string name
The message name.
Definition: SimulationMessage.h:37
std::string hostname
The name of the host that has tuned off.
Definition: HostStateChangeDetectorMessage.h:50
Top-level class to describe a message communicated by processes in the simulation.
Definition: SimulationMessage.h:27
A message sent by the HostStateChangeDetector to notify some listener that a host has turned on.
Definition: HostStateChangeDetectorMessage.h:36
Definition: Alarm.cpp:20
HostHasTurnedOnMessage(std::string hostname)
Constructor.
Definition: HostStateChangeDetectorMessage.cpp:29
Top-level class for messages received/sent by a HostStateChangeDetector.
Definition: HostStateChangeDetectorMessage.h:28
HostHasChangedSpeedMessage(std::string hostname, double speed)
Constructor.
Definition: HostStateChangeDetectorMessage.cpp:50
A message sent by the HostStateChangeDetector to notify some listener that a host has turned off.
Definition: HostStateChangeDetectorMessage.h:46
HostHasTurnedOffMessage(std::string hostname)
Constructor.
Definition: HostStateChangeDetectorMessage.cpp:39
A message sent by the HostStateChangeDetector to notify some listener that a host has changed speed.
Definition: HostStateChangeDetectorMessage.h:56
double speed
The host's (new) speed.
Definition: HostStateChangeDetectorMessage.h:62
std::string hostname
The name of the host that has tuned off.
Definition: HostStateChangeDetectorMessage.h:60
HostStateChangeDetectorMessage(std::string name)
Constructor.
Definition: HostStateChangeDetectorMessage.cpp:19
std::string hostname
The name of the host that has tuned on.
Definition: HostStateChangeDetectorMessage.h:40