Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] implicit casts
[simgrid.git] / include / simgrid / kernel / routing / VivaldiZone.hpp
index 2f05dfb..ffc6f2e 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SURF_ROUTING_VIVALDI_HPP_
 #define SURF_ROUTING_VIVALDI_HPP_
 
-#include <simgrid/kernel/routing/ClusterZone.hpp>
+#include <simgrid/kernel/routing/StarZone.hpp>
 #include <xbt/Extendable.hpp>
 
 namespace simgrid {
@@ -44,12 +44,11 @@ namespace routing {
  *  were shown superior to the Vivaldi system and could be also implemented in SimGrid.
  */
 
-class XBT_PRIVATE VivaldiZone : public ClusterZone {
+class XBT_PRIVATE VivaldiZone : public StarZone {
 public:
-  explicit VivaldiZone(NetZoneImpl* father, const std::string& name, resource::NetworkModel* netmodel);
-
-  void set_peer_link(NetPoint* netpoint, double bw_in, double bw_out, const std::string& coord);
-  void get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override;
+  using StarZone::StarZone;
+  void set_peer_link(NetPoint* netpoint, double bw_in, double bw_out);
+  void get_local_route(NetPoint* src, NetPoint* dst, Route* into, double* latency) override;
 };
 
 namespace vivaldi {
@@ -57,7 +56,6 @@ class XBT_PRIVATE Coords {
 public:
   static xbt::Extension<NetPoint, Coords> EXTENSION_ID;
   explicit Coords(NetPoint* host, const std::string& str);
-  virtual ~Coords() = default;
 
   std::vector<double> coords;
 };