- sg_host_t host_ =
- nullptr; /* The host where the execution takes place. If nullptr, then this is a parallel exec (and only surf
- knows the hosts) */
- surf_action_t surf_exec = nullptr; /* The Surf execution action encapsulated */
- surf::Action* timeoutDetector = nullptr;
+ /* The host where the execution takes place. nullptr means this is a parallel exec (and only surf knows the hosts) */
+ s4u::Host* host_ = nullptr;
+private:
+ resource::Action* timeout_detector_ = nullptr;
+
+public:
+ static simgrid::xbt::signal<void(kernel::activity::ExecImplPtr)> on_creation;
+ static simgrid::xbt::signal<void(kernel::activity::ExecImplPtr)> on_completion;
+ static simgrid::xbt::signal<void(kernel::activity::ExecImplPtr)> on_suspended;
+ static simgrid::xbt::signal<void(kernel::activity::ExecImplPtr)> on_resumed;
+ static simgrid::xbt::signal<void(simgrid::kernel::activity::ExecImplPtr, simgrid::s4u::Host*)> on_migration;