Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change way Resources are created: Empty ctor and setters
[simgrid.git] / src / surf / network_interface.cpp
index c2f2caa..15e75ad 100644 (file)
@@ -74,8 +74,9 @@ double NetworkModel::next_occurring_event_full(double now)
  ************/
 
 LinkImpl::LinkImpl(NetworkModel* model, const std::string& name, lmm::Constraint* constraint)
-    : Resource(model, name, constraint), piface_(this)
+    : piface_(this)
 {
+  this->set_name(name)->set_model(model)->set_constraint(constraint);
   if (name != "__loopback__")
     xbt_assert(not s4u::Link::by_name_or_null(name), "Link '%s' declared several times in the platform.", name.c_str());