1 /* Copyright (c) 2014-2018. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SURF_ROUTING_CLUSTER_TORUS_HPP_
7 #define SURF_ROUTING_CLUSTER_TORUS_HPP_
9 #include <simgrid/kernel/routing/ClusterZone.hpp>
17 /** @ingroup ROUTING_API
18 * @brief NetZone using a Torus topology
22 class XBT_PRIVATE TorusZone : public ClusterZone {
24 explicit TorusZone(NetZoneImpl* father, std::string name);
25 void create_links_for_node(ClusterCreationArgs* cluster, int id, int rank, unsigned int position) override;
26 void get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override;
27 void parse_specific_arguments(ClusterCreationArgs* cluster) override;
30 std::vector<unsigned int> dimensions_;
32 } // namespace routing
34 } // namespace simgrid