- 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;
+ void finish() override;
+ double get_remaining() const;
+ double get_seq_remaining_ratio();
+ double get_par_remaining_ratio();
+ void set_bound(double bound); // deprecated. To be removed in v3.25
+ void set_priority(double priority); // deprecated. To be removed in v3.25
+ 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;
+
+ static xbt::signal<void(ExecImpl&)> on_creation;
+ static xbt::signal<void(ExecImpl const&)> on_completion;
+ static xbt::signal<void(ExecImpl const&, s4u::Host*)> on_migration;