Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
12343db26bf54350f4a57e329bb32614c82c9f4f
[simgrid.git] / src / s4u / s4u_activity.cpp
1 /* Copyright (c) 2006-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #include "xbt/log.h"
8 #include "simgrid/s4u/Activity.hpp"
9 #include "../msg/msg_private.hpp"
10
11 XBT_LOG_EXTERNAL_CATEGORY(s4u);
12 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_activity,s4u,"S4U activities");
13
14 namespace simgrid {
15 namespace s4u {
16
17 Activity::Activity() {
18
19 }
20 Activity::~Activity() {
21
22 }
23
24 void Activity::setRemains(double remains) {
25   xbt_assert(state_ == inited, "Cannot change the remaining amount of work once the Activity is started");
26   remains_ = remains;
27 }
28
29 }
30 }