+ Activity::set_remaining(flops_amount_);
+ boost::static_pointer_cast<simgrid::kernel::activity::ExecImpl>(pimpl_)->set_host(host);
+}
+
+Exec* ExecSeq::start()
+{
+ kernel::actor::simcall([this] {
+ (*boost::static_pointer_cast<kernel::activity::ExecImpl>(pimpl_))
+ .set_name(name_)
+ .set_tracing_category(tracing_category_)
+ .set_sharing_penalty(1. / priority_)
+ .set_bound(bound_)
+ .set_flops_amount(flops_amount_)
+ .start();
+ });
+ state_ = State::STARTED;
+ on_start(*Actor::self(), *this);
+ return this;
+}
+
+/** @brief Returns whether the state of the exec is finished */
+/** @brief Change the host on which this activity takes place.
+ *
+ * The activity cannot be terminated already (but it may be started). */
+ExecPtr ExecSeq::set_host(Host* host)
+{
+ xbt_assert(state_ == State::INITED || state_ == State::STARTED,