X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/88fad0aaff9eb463f048bfdfe4ad6218aba44ddb..f3a267e5ba376a0f0313767a12d518ffdeaa7196:/include/simgrid/kernel/routing/ClusterZone.hpp diff --git a/include/simgrid/kernel/routing/ClusterZone.hpp b/include/simgrid/kernel/routing/ClusterZone.hpp index f44aba36b0..0005d46756 100644 --- a/include/simgrid/kernel/routing/ClusterZone.hpp +++ b/include/simgrid/kernel/routing/ClusterZone.hpp @@ -69,9 +69,9 @@ class ClusterZone : public NetZoneImpl { public: explicit ClusterZone(NetZone* father, std::string name); - void getLocalRoute(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override; - void getGraph(xbt_graph_t graph, std::map* nodes, - std::map* edges) override; + void get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override; + void get_graph(xbt_graph_t graph, std::map* nodes, + std::map* edges) override; virtual void create_links_for_node(ClusterCreationArgs* cluster, int id, int rank, unsigned int position); virtual void parse_specific_arguments(ClusterCreationArgs* cluster) @@ -83,12 +83,12 @@ public: /* The pair is {linkUp, linkDown} */ std::unordered_map> private_links_; - unsigned int nodePosition(int id) { return id * num_links_per_node_; } - unsigned int nodePositionWithLoopback(int id) { return nodePosition(id) + (has_loopback_ ? 1 : 0); } - unsigned int nodePositionWithLimiter(int id) { return nodePositionWithLoopback(id) + (has_limiter_ ? 1 : 0); } + unsigned int node_pos(int id) { return id * num_links_per_node_; } + unsigned int node_pos_with_loopback(int id) { return node_pos(id) + (has_loopback_ ? 1 : 0); } + unsigned int node_pos_with_loopback_limiter(int id) { return node_pos_with_loopback(id) + (has_limiter_ ? 1 : 0); } - surf::LinkImpl* backbone_ = nullptr; void* loopback_ = nullptr; + surf::LinkImpl* backbone_ = nullptr; NetPoint* router_ = nullptr; bool has_limiter_ = false; bool has_loopback_ = false;