Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
generateDotFile, to generate dot files for fat trees
[simgrid.git] / src / surf / surf_routing_cluster_torus.hpp
1 /* Copyright (c) 2014. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #include "surf_routing_none.hpp"
8 #include "network_interface.hpp"
9 #include "surf_routing_cluster.hpp"
10
11
12 #ifndef SURF_ROUTING_CLUSTER_TORUS_HPP_
13 #define SURF_ROUTING_CLUSTER_TORUS_HPP_
14
15 class AsClusterTorus;
16 typedef AsClusterTorus *AsClusterTorusPtr;
17
18
19 class AsClusterTorus: public AsCluster {
20 public:
21    AsClusterTorus();
22    virtual ~AsClusterTorus();
23    virtual void create_links_for_node(sg_platf_cluster_cbarg_t cluster, int id, int rank, int position);
24    virtual void getRouteAndLatency(RoutingEdgePtr src, RoutingEdgePtr dst, sg_platf_route_cbarg_t into, double *latency);
25    void parse_specific_arguments(sg_platf_cluster_cbarg_t cluster);
26
27
28    xbt_dynar_t p_dimensions;
29
30 };
31
32
33 #endif