1 /* Copyright (c) 2006-2018. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #include "xbt/asserts.h"
10 #include "simgrid/s4u/Activity.hpp"
12 XBT_LOG_EXTERNAL_CATEGORY(s4u);
13 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_activity, s4u, "S4U activities");
18 double Activity::get_remaining()
23 Activity* Activity::set_remaining(double remains)
25 xbt_assert(state_ == State::INITED, "Cannot change the remaining amount of work once the Activity is started");
31 } // namespace simgrid