X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e71a2a302d28430dc1bfee906f842f5f3d0fa3ce..40ee10e13b61bfb28374d96ade010a262b5abd44:/include/simgrid/kernel/routing/VivaldiZone.hpp diff --git a/include/simgrid/kernel/routing/VivaldiZone.hpp b/include/simgrid/kernel/routing/VivaldiZone.hpp index d7627b96c5..c64353ad15 100644 --- a/include/simgrid/kernel/routing/VivaldiZone.hpp +++ b/include/simgrid/kernel/routing/VivaldiZone.hpp @@ -1,17 +1,15 @@ -/* Copyright (c) 2013-2021. 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 { -namespace kernel { -namespace routing { +namespace simgrid::kernel::routing { /** @ingroup ROUTING_API * @brief NetZone modeling peers connected to the cloud through a private link @@ -44,11 +42,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: - using ClusterZone::ClusterZone; - 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(const NetPoint* src, const NetPoint* dst, Route* into, double* latency) override; }; namespace vivaldi { @@ -60,8 +58,6 @@ public: std::vector coords; }; } // namespace vivaldi -} // namespace routing -} // namespace kernel -} // namespace simgrid +} // namespace simgrid::kernel::routing -#endif /* SURF_ROUTING_VIVALDI_HPP_ */ +#endif /* SIMGRID_ROUTING_VIVALDI_HPP_ */