Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Use template parameter.
[simgrid.git] / src / surf / network_interface.cpp
index 42902a42a2fe2721875099cbb309f1e0d07dd0f8..8084ae54bbdae132f9ad368606326c5acbf3a850 100644 (file)
@@ -104,17 +104,17 @@ void LinkImpl::destroy()
   }
 }
 
-bool LinkImpl::is_used()
+bool LinkImpl::is_used() const
 {
   return get_model()->get_maxmin_system()->constraint_used(get_constraint());
 }
 
-double LinkImpl::get_latency()
+double LinkImpl::get_latency() const
 {
   return latency_.peak * latency_.scale;
 }
 
-double LinkImpl::get_bandwidth()
+double LinkImpl::get_bandwidth() const
 {
   return bandwidth_.peak * bandwidth_.scale;
 }