Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[surf] new (abstract) class: PropertyHolder, with only one purpose
[simgrid.git] / src / surf / network_interface.hpp
index dcd3136..415d244 100644 (file)
@@ -15,6 +15,7 @@
 #include "xbt/dict.h"
 #include "surf_interface.hpp"
 #include "surf_routing.hpp"
+#include "src/surf/PropertyHolder.hpp"
 
 #include "simgrid/link.h"
 
@@ -187,7 +188,7 @@ public:
   * @brief SURF network link interface class
   * @details A Link represents the link between two [hosts](\ref Host)
   */
-class Link : public simgrid::surf::Resource {
+class Link : public simgrid::surf::Resource, public simgrid::surf::PropertyHolder {
 public:
   /**
    * @brief Link constructor
@@ -252,11 +253,6 @@ public:
 private:
   void *userData = NULL;
 
-public:
-  xbt_dict_t getProperties();
-protected:
-  xbt_dict_t p_properties = NULL;
-
   /* List of all links */
 private:
   static boost::unordered_map<std::string, Link *> *links;