namespace simgrid {
namespace s4u {
-void Activity::setRemains(size_t remains)
+double Activity::getRemains()
+{
+ return 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;
}
}