WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
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:
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
wrench::HostHasTurnedOffMessage::hostname
std::string hostname
The name of the host that has tuned off.
Definition: HostStateChangeDetectorMessage.h:50
wrench::HostStateChangeDetectorMessage::HostStateChangeDetectorMessage
HostStateChangeDetectorMessage()
Constructor.
Definition: HostStateChangeDetectorMessage.cpp:19
wrench::SimulationMessage
Top-level class to describe a message communicated by processes in the simulation.
Definition: SimulationMessage.h:28
wrench::HostHasTurnedOnMessage
A message sent by the HostStateChangeDetector to notify some listener that a host has turned on.
Definition: HostStateChangeDetectorMessage.h:36
wrench
Definition: Action.cpp:28
wrench::HostHasTurnedOnMessage::HostHasTurnedOnMessage
HostHasTurnedOnMessage(std::string hostname)
Constructor.
Definition: HostStateChangeDetectorMessage.cpp:29
wrench::HostStateChangeDetectorMessage
Top-level class for messages received/sent by a HostStateChangeDetector.
Definition: HostStateChangeDetectorMessage.h:28
wrench::HostHasChangedSpeedMessage::HostHasChangedSpeedMessage
HostHasChangedSpeedMessage(std::string hostname, double speed)
Constructor.
Definition: HostStateChangeDetectorMessage.cpp:50
wrench::HostHasTurnedOffMessage
A message sent by the HostStateChangeDetector to notify some listener that a host has turned off.
Definition: HostStateChangeDetectorMessage.h:46
wrench::HostHasTurnedOffMessage::HostHasTurnedOffMessage
HostHasTurnedOffMessage(std::string hostname)
Constructor.
Definition: HostStateChangeDetectorMessage.cpp:39
wrench::HostHasChangedSpeedMessage
A message sent by the HostStateChangeDetector to notify some listener that a host has changed speed.
Definition: HostStateChangeDetectorMessage.h:56
wrench::HostHasChangedSpeedMessage::speed
double speed
The host's (new) speed.
Definition: HostStateChangeDetectorMessage.h:62
wrench::HostHasChangedSpeedMessage::hostname
std::string hostname
The name of the host that has tuned off.
Definition: HostStateChangeDetectorMessage.h:60
wrench::HostHasTurnedOnMessage::hostname
std::string hostname
The name of the host that has tuned on.
Definition: HostStateChangeDetectorMessage.h:40