10 #ifndef WRENCH_SLEEP_ACTION_H
11 #define WRENCH_SLEEP_ACTION_H
15 #include "wrench/action/Action.h"
30 SleepAction(
const std::string& name, std::shared_ptr<CompoundJob> job,
double sleep_time);
32 void execute(std::shared_ptr<ActionExecutor> action_executor)
override;
33 void terminate(std::shared_ptr<ActionExecutor> action_executor)
override;
42 #endif //WRENCH_SLEEP_ACTION_H
SleepAction(const std::string &name, std::shared_ptr< CompoundJob > job, double sleep_time)
Constructor.
Definition: SleepAction.cpp:25
A class that implements a sleep action.
Definition: SleepAction.h:22
double getSleepTime()
Returns the action's sleep time.
Definition: SleepAction.cpp:33
Definition: Action.cpp:28
void terminate(std::shared_ptr< ActionExecutor > action_executor) override
Method called when the action terminates.
Definition: SleepAction.cpp:52
An abstract class that implements the concept of an action.
Definition: Action.h:28
void execute(std::shared_ptr< ActionExecutor > action_executor) override
Method to execute the action.
Definition: SleepAction.cpp:41
A compound job.
Definition: CompoundJob.h:47