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
double speed
The host&#39;s (new) speed.
Definition: HostStateChangeDetectorMessage.h:62
A message sent by the HostStateChangeDetector to notify some listener that a host has turned off...
Definition: HostStateChangeDetectorMessage.h:46
std::string hostname
The name of the host that has tuned off.
Definition: HostStateChangeDetectorMessage.h:60
std::string hostname
The name of the host that has tuned on.
Definition: HostStateChangeDetectorMessage.h:40
A message sent by the HostStateChangeDetector to notify some listener that a host has turned on...
Definition: HostStateChangeDetectorMessage.h:36
Top-level class to describe a message communicated by processes in the simulation.
Definition: SimulationMessage.h:27
std::string name
The message name.
Definition: SimulationMessage.h:37
Top-level class for messages received/sent by a HostStateChangeDetector.
Definition: HostStateChangeDetectorMessage.h:28
std::string hostname
The name of the host that has tuned off.
Definition: HostStateChangeDetectorMessage.h:50
HostStateChangeDetectorMessage(std::string name)
Constructor.
Definition: HostStateChangeDetectorMessage.cpp:19
A message sent by the HostStateChangeDetector to notify some listener that a host has changed speed...
Definition: HostStateChangeDetectorMessage.h:56
Definition: Alarm.cpp:19