Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
every setter in s4u::Activity return the activity
[simgrid.git] / src / s4u / s4u_activity.cpp
index bc04431..d2cc31b 100644 (file)
@@ -20,9 +20,11 @@ double Activity::getRemains()
   return remains_;
 }
 
-void Activity::setRemains(double remains) {
+Activity* Activity::setRemains(double remains)
+{
   xbt_assert(state_ == inited, "Cannot change the remaining amount of work once the Activity is started");
   remains_ = remains;
+  return this;
 }
 
 }