- double remains();
- double remainingRatio();
-
- /* The host where the execution takes place. If nullptr, then this is a parallel exec (and only surf
- knows the hosts) */
- sg_host_t host_ = nullptr;
- surf_action_t surfAction_ = nullptr; /* The Surf execution action encapsulated */
- surf::Action* timeoutDetector = nullptr;
- static simgrid::xbt::signal<void(kernel::activity::ExecImplPtr)> onCreation;
- static simgrid::xbt::signal<void(kernel::activity::ExecImplPtr)> onDestruction;
+ double get_remaining();
+ double get_remaining_ratio();
+ void set_bound(double bound);
+ void set_priority(double priority);
+ virtual ActivityImpl* migrate(s4u::Host* to);
+
+ /* 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(ExecImplPtr)> on_creation;
+ static simgrid::xbt::signal<void(ExecImplPtr)> on_completion;
+ static simgrid::xbt::signal<void(ExecImplPtr, simgrid::s4u::Host*)> on_migration;