namespace kernel {
namespace activity {
-SleepImplPtr SleepImpl::set_name(const std::string& name)
+SleepImpl& SleepImpl::set_name(const std::string& name)
{
ActivityImpl::set_name(name);
- return this;
+ return *this;
}
-SleepImplPtr SleepImpl::set_host(s4u::Host* host)
+SleepImpl& SleepImpl::set_host(s4u::Host* host)
{
host_ = host;
- return this;
+ return *this;
}
-SleepImplPtr SleepImpl::set_duration(double duration)
+SleepImpl& SleepImpl::set_duration(double duration)
{
duration_ = duration;
- return this;
+ return *this;
}
SleepImpl* SleepImpl::start()