Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
align file position to the C++ namespaces
[simgrid.git] / src / kernel / resource / Resource.cpp
index 05aa688..b975e92 100644 (file)
@@ -5,8 +5,8 @@
 
 #include "simgrid/kernel/resource/Resource.hpp"
 #include "src/kernel/lmm/maxmin.hpp" // Constraint
+#include "src/kernel/resource/profile/trace_mgr.hpp"
 #include "src/surf/surf_interface.hpp"
-#include "src/surf/trace_mgr.hpp"
 
 namespace simgrid {
 namespace kernel {
@@ -63,11 +63,11 @@ bool Resource::operator==(const Resource& other) const
   return name_ == other.name_;
 }
 
-void Resource::set_state_trace(tmgr_trace_t trace)
+void Resource::set_state_profile(profile::Profile* profile)
 {
-  xbt_assert(state_event_ == nullptr, "Cannot set a second state trace to %s", get_cname());
+  xbt_assert(state_event_ == nullptr, "Cannot set a second state profile to %s", get_cname());
 
-  state_event_ = future_evt_set.add_trace(trace, this);
+  state_event_ = future_evt_set.add_trace(profile, this);
 }
 
 kernel::lmm::Constraint* Resource::get_constraint() const