/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#include "xbt/asserts.h"
#include "xbt/log.h"
-#include "src/msg/msg_private.h"
#include "simgrid/s4u/Activity.hpp"
namespace simgrid {
namespace s4u {
-Activity::Activity() {
-
-}
-Activity::~Activity() {
-
+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;
}
}