namespace activity {
class XBT_PUBLIC SleepImpl : public ActivityImpl {
+ sg_host_t host_ = nullptr;
+ double duration_ = 0;
+
public:
+ SleepImplPtr set_name(const std::string& name);
+ SleepImplPtr set_host(s4u::Host* host);
+ SleepImplPtr set_duration(double duration);
void post() override;
-
- sg_host_t host = nullptr;
+ void finish() override;
+ SleepImpl* start();
};
-}
-}
-} // namespace simgrid::kernel::activity
+} // namespace activity
+} // namespace kernel
+} // namespace simgrid
#endif