Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
start to s/trace/profile/ in the public API
[simgrid.git] / src / kernel / resource / Resource.cpp
index bcab6db..0a448db 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2018. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2019. 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. */
@@ -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