Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines.
[simgrid.git] / src / kernel / resource / Resource.cpp
index 16851b2..581d6c7 100644 (file)
@@ -1,19 +1,18 @@
-/* Copyright (c) 2004-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2021. The SimGrid Team. All rights reserved.          */
 
 /* 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 "simgrid/kernel/resource/Resource.hpp"
 #include "src/kernel/lmm/maxmin.hpp" // Constraint
-#include "src/kernel/resource/profile/trace_mgr.hpp"
+#include "src/kernel/resource/profile/FutureEvtSet.hpp"
+#include "src/kernel/resource/profile/Profile.hpp"
 #include "src/surf/surf_interface.hpp"
 
 namespace simgrid {
 namespace kernel {
 namespace resource {
 
-Resource::~Resource() = default;
-
 double Resource::get_load() const
 {
   return constraint_->get_usage();
@@ -22,7 +21,7 @@ double Resource::get_load() const
 void Resource::set_state_profile(profile::Profile* profile)
 {
   xbt_assert(state_event_ == nullptr, "Cannot set a second state profile to %s", get_cname());
-  state_event_ = profile->schedule(&future_evt_set, this);
+  state_event_ = profile->schedule(&profile::future_evt_set, this);
 }
 
 } // namespace resource