- explicit ExecImpl(std::string name, std::string tracing_category, resource::Action* timeout_detector,
- s4u::Host* host);
- void start(double flops_amount, double priority, double bound);
- void suspend() override;
- void resume() override;
- void cancel();
- void post() override;
- double get_remaining();
- double get_remaining_ratio();
- void set_bound(double bound);
- void set_priority(double priority);
- void set_category(std::string category);
+ ExecImpl();
+
+ ExecImpl& set_timeout(double timeout) override;
+ ExecImpl& set_bound(double bound);
+ ExecImpl& set_sharing_penalty(double sharing_penalty);
+ ExecImpl& update_sharing_penalty(double sharing_penalty);
+
+ void set_cb_id(unsigned int cb_id) { cb_id_ = cb_id; }
+
+ double get_start_time() const { return start_time_; }
+ void set_finish_time(double finish_time) { finish_time_ = finish_time; }
+ double get_finish_time() const { return finish_time_; }
+
+ ExecImpl& set_flops_amount(double flop_amount);
+ ExecImpl& set_host(s4u::Host* host);
+ s4u::Host* get_host() const { return hosts_.front(); }
+ const std::vector<s4u::Host*>& get_hosts() const { return hosts_; }
+
+ ExecImpl& set_flops_amounts(const std::vector<double>& flops_amounts);
+ ExecImpl& set_bytes_amounts(const std::vector<double>& bytes_amounts);
+ ExecImpl& set_hosts(const std::vector<s4u::Host*>& hosts);
+
+ unsigned int get_host_number() const { return hosts_.size(); }
+ double get_seq_remaining_ratio();
+ double get_par_remaining_ratio();
+ double get_remaining() const override;