Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use new API to create Torus/Dragonfly/Fat-Tree clusters from XML.
[simgrid.git] / include / simgrid / kernel / routing / DragonflyZone.hpp
index d5f77dd..19f1f4a 100644 (file)
@@ -69,7 +69,13 @@ public:
 
   explicit DragonflyZone(const std::string& name);
   void get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override;
-  void parse_specific_arguments(ClusterCreationArgs* cluster) override;
+  /**
+   * @brief Parse topology parameters from string format
+   *
+   * @param topo_parameters Topology parameters, e.g. "3,4 ; 3,2 ; 3,1 ; 2"
+   */
+  static s4u::DragonflyParams parse_topo_parameters(const std::string& topo_parameters);
+
   /** @brief Checks topology parameters */
   static void check_topology(unsigned int n_groups, unsigned int groups_links, unsigned int n_chassis,
                              unsigned int chassis_links, unsigned int n_routers, unsigned int routers_links,