X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8937f1426cc4c3bbe77178ce3a9cdc0687263a8e..07f196691f95ce17dcaecb68e984e93df3debb58:/include/simgrid/kernel/routing/VivaldiZone.hpp diff --git a/include/simgrid/kernel/routing/VivaldiZone.hpp b/include/simgrid/kernel/routing/VivaldiZone.hpp index ecbe7187cc..0af8f0edb4 100644 --- a/include/simgrid/kernel/routing/VivaldiZone.hpp +++ b/include/simgrid/kernel/routing/VivaldiZone.hpp @@ -1,12 +1,12 @@ -/* Copyright (c) 2013-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef SURF_ROUTING_VIVALDI_HPP_ -#define SURF_ROUTING_VIVALDI_HPP_ +#ifndef SIMGRID_ROUTING_VIVALDI_HPP_ +#define SIMGRID_ROUTING_VIVALDI_HPP_ -#include +#include #include namespace simgrid { @@ -44,28 +44,18 @@ 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, std::string name, resource::NetworkModel* netmodel); - - void set_peer_link(NetPoint* netpoint, double bw_in, double bw_out, std::string coord); - void get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override; - - // deprecated - XBT_ATTRIB_DEPRECATED_v323("Please use VivaldiZone::set_peer_link()") void setPeerLink(NetPoint* netpoint, - double bw_in, double bw_out, - std::string coord) - { - set_peer_link(netpoint, bw_in, bw_out, coord); - } + using StarZone::StarZone; + void set_peer_link(NetPoint* netpoint, double bw_in, double bw_out); + void get_local_route(const NetPoint* src, const NetPoint* dst, Route* into, double* latency) override; }; namespace vivaldi { class XBT_PRIVATE Coords { public: - static simgrid::xbt::Extension EXTENSION_ID; - explicit Coords(NetPoint* host, std::string str); - virtual ~Coords() = default; + static xbt::Extension EXTENSION_ID; + explicit Coords(NetPoint* host, const std::string& str); std::vector coords; }; @@ -74,4 +64,4 @@ public: } // namespace kernel } // namespace simgrid -#endif /* SURF_ROUTING_VIVALDI_HPP_ */ +#endif /* SIMGRID_ROUTING_VIVALDI_HPP_ */