Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[CR] Minor improvement.
[simgrid.git] / src / surf / LinkImplIntf.hpp
index c9d3dac..6845de0 100644 (file)
@@ -6,9 +6,9 @@
 #ifndef SIMGRID_KERNEL_RESOURCE_LINKIMPLINTF_HPP
 #define SIMGRID_KERNEL_RESOURCE_LINKIMPLINTF_HPP
 
-#include "simgrid/kernel/resource/Resource.hpp"
 #include "simgrid/s4u/Link.hpp"
-#include <xbt/PropertyHolder.hpp>
+#include "src/kernel/resource/Resource.hpp"
+#include "xbt/PropertyHolder.hpp"
 
 /***********
  * Classes *
@@ -22,7 +22,7 @@ namespace resource {
  ************/
 /** @ingroup SURF_interface
  * @brief SURF network link interface class
- * @details A Link represents the link between two [hosts](@ref simgrid::surf::HostImpl)
+ * @details A Link represents the link between two [hosts](@ref HostImpl)
  */
 class LinkImplIntf : public Resource_T<LinkImplIntf>, public xbt::PropertyHolder {
 public:
@@ -38,7 +38,7 @@ public:
   virtual void set_latency(double value) = 0;
 
   /** @brief The sharing policy */
-  virtual void set_sharing_policy(s4u::Link::SharingPolicy policy) = 0;
+  virtual void set_sharing_policy(s4u::Link::SharingPolicy policy, const s4u::NonLinearResourceCb& cb) = 0;
   virtual s4u::Link::SharingPolicy get_sharing_policy() const      = 0;
 
   /* setup the profile file with bandwidth events (peak speed changes due to external load).