1 /* Copyright (c) 2014-2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #ifndef SURF_ROUTING_CLUSTER_TORUS_HPP_
9 #define SURF_ROUTING_CLUSTER_TORUS_HPP_
13 #include "surf_routing_none.hpp"
14 #include "network_interface.hpp"
15 #include "surf_routing_cluster.hpp"
17 class XBT_PRIVATE AsClusterTorus: public AsCluster {
20 virtual ~AsClusterTorus();
21 virtual void create_links_for_node(sg_platf_cluster_cbarg_t cluster, int id, int rank, int position);
22 virtual void getRouteAndLatency(RoutingEdge *src, RoutingEdge *dst, sg_platf_route_cbarg_t into, double *latency);
23 void parse_specific_arguments(sg_platf_cluster_cbarg_t cluster);
26 xbt_dynar_t p_dimensions;