]> AND Public Git Repository - simgrid.git/blobdiff - doc/doxygen/inside_extending.doc
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Factorize CMakeLists
[simgrid.git] / doc / doxygen / inside_extending.doc
index 54f7dcc7aafe62198dda3b8c3175838c7aad6641..7668d2658ee11cb441b0010ba62f3925c022d579 100644 (file)
@@ -16,7 +16,7 @@ A model in SimGrid is composed of three classes: Model, Resource and Action
 
 Actually there are five kind of models: CpuModel, NetworkModel, WorkstationModel,
 WorkstationVMModel and StorageModel. For each kind of model, there is an
-interface (e.g.: @ref SURF_cpu_interface "cpu_interface.hpp") and some implementations (e.g.: cpu_cas01.hpp,
+interface (e.g.: @ref SURF_cpu_interface "CpuImpl.hpp") and some implementations (e.g.: cpu_cas01.hpp,
 cpu_ti.hpp).
 
 The CPU model Cas01, for instance, is initialized by the function
@@ -44,7 +44,7 @@ void surf_cpu_model_init_plop()
 
   surf_cpu_model_pm = new CpuPlopModel();
 
-  simgrid::surf::on_postparse.connect(cpu_add_traces);
+  simgrid::kernel::resource::on_postparse.connect(cpu_add_traces);
 
   xbt_dynar_push(model_list, &surf_cpu_model_pm);
 }
@@ -191,8 +191,9 @@ simulation.  This call is particularly useful for implementing mutable calls:
 ~~~
 void Host::setProperty(const char*key, const char *value){
   simgrid::simix::kernelImmediate([&] {
-    simgrid::surf::HostImpl* surf_host = this->extension<simgrid::surf::HostImpl>();
-    surf_host->setProperty(key,value);
+    simgrid::kernel::resource::HostImpl* host =
+       this->extension<simgrid::kernel::resource::HostImpl>();
+    host->setProperty(key,value);
   });
 }
 ~~~
@@ -256,4 +257,4 @@ catch (std::runtime_error& e) {
 You should not do something like that. Please work instead to make XML
 avoidable, ie to make the C++ interface nice and usable.
 
-*/
\ No newline at end of file
+*/