WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
ActionExecutionServiceMessage.h
1 
11 #ifndef WRENCH_ACTION_ACTION_EXECUTION_SERVICE_MESSAGE_H
12 #define WRENCH_ACTION_ACTION_EXECUTION_SERVICE_MESSAGE_H
13 
14 #include <vector>
15 
16 #include "wrench/services/helper_services/action_execution_service/ActionExecutionService.h"
17 #include "wrench/services/ServiceMessage.h"
18 
19 namespace wrench {
20 
21  class Action;
22 
23  class ActionExecutor;
24 
25  /***********************/
27  /***********************/
28 
33  protected:
35  };
36 
41  public:
43  simgrid::s4u::Mailbox *reply_mailbox,
44  std::shared_ptr<Action> action,
45  double payload);
46 
48  std::shared_ptr<Action> action;
50  simgrid::s4u::Mailbox *reply_mailbox;
51  };
52 
57  public:
59  bool success,
60  std::shared_ptr<FailureCause> cause,
61  double payload);
62 
64  bool success;
66  std::shared_ptr<FailureCause> cause;
67  };
68 
73  public:
75  simgrid::s4u::Mailbox *reply_mailbox,
76  std::shared_ptr<Action> action,
78  double payload);
79 
81  simgrid::s4u::Mailbox *reply_mailbox;
83  std::shared_ptr<Action> action;
86  };
87 
92  public:
94  bool success,
95  std::shared_ptr<FailureCause> cause,
96  double payload);
97 
99  bool success;
101  std::shared_ptr<FailureCause> cause;
102  };
103 
108  public:
110  std::shared_ptr<Action> action,
111  double payload);
112 
114  std::shared_ptr<Action> action;
115  };
116 
117 
118 
119  /***********************/
121  /***********************/
122 };
123 
124 #endif //WRENCH_ACTION_ACTION_EXECUTION_SERVICE_MESSAGE_H
wrench::ActionExecutionServiceSubmitActionAnswerMessage
A message sent by an ActionExecutionService in answer to an Action submission.
Definition: ActionExecutionServiceMessage.h:56
wrench::ComputeService::TerminationCause
TerminationCause
Job termination cause enum.
Definition: ComputeService.h:67
wrench::ActionExecutionServiceActionDoneMessage::ActionExecutionServiceActionDoneMessage
ActionExecutionServiceActionDoneMessage(std::shared_ptr< Action > action, double payload)
Constructor.
Definition: ActionExecutionServiceMessage.cpp:96
wrench::ActionExecutionServiceSubmitActionRequestMessage::reply_mailbox
simgrid::s4u::Mailbox * reply_mailbox
The reply mailbox.
Definition: ActionExecutionServiceMessage.h:50
wrench::SimulationMessage
Top-level class to describe a message communicated by processes in the simulation.
Definition: SimulationMessage.h:28
wrench::ActionExecutionServiceSubmitActionRequestMessage::ActionExecutionServiceSubmitActionRequestMessage
ActionExecutionServiceSubmitActionRequestMessage(simgrid::s4u::Mailbox *reply_mailbox, std::shared_ptr< Action > action, double payload)
Constructor.
Definition: ActionExecutionServiceMessage.cpp:35
wrench::ActionExecutionServiceSubmitActionAnswerMessage::success
bool success
Whether the action submission was a success or not.
Definition: ActionExecutionServiceMessage.h:64
wrench::ActionExecutionServiceTerminateActionRequestMessage::ActionExecutionServiceTerminateActionRequestMessage
ActionExecutionServiceTerminateActionRequestMessage(simgrid::s4u::Mailbox *reply_mailbox, std::shared_ptr< Action > action, ComputeService::TerminationCause termination_cause, double payload)
Constructor.
Definition: ActionExecutionServiceMessage.cpp:66
wrench::ActionExecutionServiceActionDoneMessage::action
std::shared_ptr< Action > action
The action that completed
Definition: ActionExecutionServiceMessage.h:114
wrench
Definition: Action.cpp:28
wrench::ActionExecutionServiceTerminateActionAnswerMessage
A message sent by an ActionExecutionService in response to an action termination.
Definition: ActionExecutionServiceMessage.h:91
wrench::ActionExecutionServiceSubmitActionRequestMessage
A message sent to an ActionExecutionService to submit an Action.
Definition: ActionExecutionServiceMessage.h:40
wrench::ActionExecutionServiceTerminateActionRequestMessage::termination_cause
ComputeService::TerminationCause termination_cause
The termination cause.
Definition: ActionExecutionServiceMessage.h:85
wrench::ActionExecutionServiceActionDoneMessage
A message sent by an ActionExecutionService to notify of an action's completion.
Definition: ActionExecutionServiceMessage.h:107
wrench::SimulationMessage::payload
double payload
The message name.
Definition: SimulationMessage.h:40
wrench::ActionExecutionServiceTerminateActionAnswerMessage::success
bool success
The success status.
Definition: ActionExecutionServiceMessage.h:99
wrench::ActionExecutionServiceTerminateActionRequestMessage
A message sent to an ActionExecutionService to terminate an Action.
Definition: ActionExecutionServiceMessage.h:72
wrench::ActionExecutionServiceTerminateActionAnswerMessage::ActionExecutionServiceTerminateActionAnswerMessage
ActionExecutionServiceTerminateActionAnswerMessage(bool success, std::shared_ptr< FailureCause > cause, double payload)
Constructor.
Definition: ActionExecutionServiceMessage.cpp:83
wrench::ActionExecutionServiceTerminateActionAnswerMessage::cause
std::shared_ptr< FailureCause > cause
The failure cause, if any
Definition: ActionExecutionServiceMessage.h:101
wrench::ActionExecutionServiceTerminateActionRequestMessage::reply_mailbox
simgrid::s4u::Mailbox * reply_mailbox
The reply mailbox.
Definition: ActionExecutionServiceMessage.h:81
wrench::ActionExecutionServiceSubmitActionRequestMessage::action
std::shared_ptr< Action > action
The action to be executed.
Definition: ActionExecutionServiceMessage.h:48
wrench::ActionExecutionServiceSubmitActionAnswerMessage::ActionExecutionServiceSubmitActionAnswerMessage
ActionExecutionServiceSubmitActionAnswerMessage(bool success, std::shared_ptr< FailureCause > cause, double payload)
Constructor.
Definition: ActionExecutionServiceMessage.cpp:50
wrench::ActionExecutionServiceSubmitActionAnswerMessage::cause
std::shared_ptr< FailureCause > cause
The failure cause, if any.
Definition: ActionExecutionServiceMessage.h:66
wrench::ActionExecutionServiceTerminateActionRequestMessage::action
std::shared_ptr< Action > action
The action to terminate
Definition: ActionExecutionServiceMessage.h:83
wrench::ActionExecutionServiceMessage::ActionExecutionServiceMessage
ActionExecutionServiceMessage(double payload)
Constructor.
Definition: ActionExecutionServiceMessage.cpp:24
wrench::ActionExecutionServiceMessage
Top-level class for messages received/sent by a ActionExecutionService.
Definition: ActionExecutionServiceMessage.h:32