WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Alarm.h
1 
10 #ifndef WRENCH_ALARM_H
11 #define WRENCH_ALARM_H
12 
13 #include <string>
14 #include <memory>
15 #include <wrench/services/Service.h>
16 #include "wrench/simulation/SimulationMessage.h"
17 
18 namespace wrench {
19 
20  /***********************/
22  /***********************/
23 
24 
25  class Simulation;
26 
30  class Alarm : public Service {
31 
32  friend class S4U_Daemon;
33 
34  public:
35 
36  static std::shared_ptr<Alarm> createAndStartAlarm(Simulation *simulation, double date, std::string hostname, std::string &reply_mailbox_name,
37  SimulationMessage *msg, std::string suffix);
38 
39  void kill();
40 
41  private:
42  Alarm(double date, std::string hostname, std::string &reply_mailbox_name,
43  SimulationMessage *msg, std::string suffix);
44 
45  double date;
46  std::string reply_mailbox_name;
47  SimulationMessage *msg;
48 
49  int main() override;
50 
51  };
52 
53  /***********************/
55  /***********************/
56 
57 }
58 
59 #endif //WRENCH_ALARM_H
wrench
Definition: Alarm.cpp:20