Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move the surf::As* classes into their own files
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 8 Mar 2016 15:47:47 +0000 (16:47 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 8 Mar 2016 15:47:47 +0000 (16:47 +0100)
24 files changed:
src/surf/AsCluster.cpp [moved from src/surf/surf_routing_cluster.cpp with 96% similarity]
src/surf/AsCluster.hpp [moved from src/surf/surf_routing_cluster.hpp with 68% similarity]
src/surf/AsClusterFatTree.cpp [moved from src/surf/surf_routing_cluster_fat_tree.cpp with 98% similarity]
src/surf/AsClusterFatTree.hpp [moved from src/surf/surf_routing_cluster_fat_tree.hpp with 93% similarity]
src/surf/AsClusterTorus.cpp [moved from src/surf/surf_routing_cluster_torus.cpp with 98% similarity]
src/surf/AsClusterTorus.hpp [moved from src/surf/surf_routing_cluster_torus.hpp with 72% similarity]
src/surf/AsDijkstra.cpp [moved from src/surf/surf_routing_dijkstra.cpp with 98% similarity]
src/surf/AsDijkstra.hpp [moved from src/surf/surf_routing_dijkstra.hpp with 88% similarity]
src/surf/AsFloyd.cpp [moved from src/surf/surf_routing_floyd.cpp with 97% similarity]
src/surf/AsFloyd.hpp [moved from src/surf/surf_routing_floyd.hpp with 73% similarity]
src/surf/AsFull.cpp [moved from src/surf/surf_routing_full.cpp with 96% similarity]
src/surf/AsFull.hpp [moved from src/surf/surf_routing_full.hpp with 69% similarity]
src/surf/AsImpl.cpp
src/surf/AsImpl.hpp
src/surf/AsNone.cpp [moved from src/surf/surf_routing_none.cpp with 78% similarity]
src/surf/AsNone.hpp [moved from src/surf/surf_routing_none.hpp with 84% similarity]
src/surf/AsRoutedGraph.cpp [moved from src/surf/surf_routing_RoutedGraph.cpp with 97% similarity]
src/surf/AsRoutedGraph.hpp [moved from src/surf/surf_routing_RoutedGraph.hpp with 79% similarity]
src/surf/AsVivaldi.cpp [moved from src/surf/surf_routing_vivaldi.cpp with 95% similarity]
src/surf/AsVivaldi.hpp [moved from src/surf/surf_routing_vivaldi.hpp with 51% similarity]
src/surf/sg_platf.cpp
src/surf/surf_c_bindings.cpp
src/surf/surf_routing.cpp
tools/cmake/DefinePackages.cmake

similarity index 96%
rename from src/surf/surf_routing_cluster.cpp
rename to src/surf/AsCluster.cpp
index c6a21e1..a297300 100644 (file)
@@ -1,10 +1,10 @@
-/* Copyright (c) 2009-2011, 2013-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2009-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "surf_routing_cluster.hpp"
+#include "src/surf/AsCluster.hpp"
+#include "src/surf/network_interface.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_cluster, surf, "Routing part of surf");
 
similarity index 68%
rename from src/surf/surf_routing_cluster.hpp
rename to src/surf/AsCluster.hpp
index ef11fa9..d0e3819 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (c) 2013-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2013-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -7,25 +6,12 @@
 #ifndef SURF_ROUTING_CLUSTER_HPP_
 #define SURF_ROUTING_CLUSTER_HPP_
 
-#include <xbt/base.h>
-
-#include "surf_routing.hpp"
-#include "network_interface.hpp"
 #include "src/surf/AsImpl.hpp"
 
 namespace simgrid {
 namespace surf {
 
-/***********
- * Classes *
- ***********/
-
-class XBT_PRIVATE AsCluster;
-
-/* ************************************************** */
-/* **************  Cluster ROUTING   **************** */
-
-class AsCluster: public AsImpl {
+class XBT_PRIVATE AsCluster: public AsImpl {
 public:
   AsCluster(const char*name);
 
@@ -35,7 +21,6 @@ public:
   virtual void create_links_for_node(sg_platf_cluster_cbarg_t cluster, int id, int rank, int position);
   virtual void parse_specific_arguments(sg_platf_cluster_cbarg_t cluster) {}
 
-
   Link* backbone_ = nullptr;
   void *loopback_ = nullptr;
   NetCard *router_ = nullptr;
similarity index 98%
rename from src/surf/surf_routing_cluster_fat_tree.cpp
rename to src/surf/AsClusterFatTree.cpp
index 579e1e3..7dc11a2 100644 (file)
@@ -1,16 +1,16 @@
-#include <cstdlib>
+/* Copyright (c) 2014-2016. The SimGrid Team. All rights reserved.          */
 
-#include <map>
-#include <string>
-#include <utility>
-#include <vector>
-#include <iostream>
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+#include "src/surf/AsClusterFatTree.hpp"
+#include "src/surf/network_interface.hpp"
 
-#include "src/surf/surf_routing_cluster_fat_tree.hpp"
 #include "xbt/lib.h"
 
 #include <boost/algorithm/string/split.hpp>
 #include <boost/algorithm/string/classification.hpp>
+
 #include <iostream>
 #include <fstream>
 #include <sstream>
similarity index 93%
rename from src/surf/surf_routing_cluster_fat_tree.hpp
rename to src/surf/AsClusterFatTree.hpp
index 410479f..cb3ac24 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (c) 2014-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2014-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -7,13 +6,7 @@
 #ifndef SURF_ROUTING_CLUSTER_FAT_TREE_HPP_
 #define SURF_ROUTING_CLUSTER_FAT_TREE_HPP_
 
-#include <string>
-#include <map>
-#include <vector>
-
-#include <xbt/base.h>
-
-#include "surf_routing_cluster.hpp"
+#include "src/surf/AsCluster.hpp"
 
 namespace simgrid {
 namespace surf {
@@ -25,14 +18,13 @@ namespace surf {
  * address real world constraints, which are not currently enforced. 
  */
 
-class XBT_PRIVATE FatTreeNode;
 class XBT_PRIVATE FatTreeLink;
 
 /** \brief A node in a fat tree.
  * A FatTreeNode can either be a switch or a processing node. Switches are
  * identified by a negative ID. This class is closely related to fat
  */
-class FatTreeNode {
+class XBT_PRIVATE FatTreeNode {
 public:
   /** Unique ID which identifies every node. */
   int id;
@@ -65,8 +57,7 @@ public:
    * instead of passing by an upper level switch.
    */
   Link* loopback;
-  FatTreeNode(sg_platf_cluster_cbarg_t cluster, int id, int level,
-              int position);
+  FatTreeNode(sg_platf_cluster_cbarg_t cluster, int id, int level, int position);
 };
 
 
@@ -78,8 +69,7 @@ public:
  */
 class FatTreeLink {
 public:
-  FatTreeLink(sg_platf_cluster_cbarg_t cluster, FatTreeNode *source,
-              FatTreeNode *destination);
+  FatTreeLink(sg_platf_cluster_cbarg_t cluster, FatTreeNode *source, FatTreeNode *destination);
   /** Link going up in the tree */
   Link *upLink; 
   /** Link going down in the tree */
similarity index 98%
rename from src/surf/surf_routing_cluster_torus.cpp
rename to src/surf/AsClusterTorus.cpp
index 294c127..346361f 100644 (file)
@@ -1,15 +1,14 @@
-/* Copyright (c) 2014-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2014-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "src/surf/surf_routing_cluster_torus.hpp"
+#include "src/surf/AsClusterTorus.hpp"
+#include "src/surf/network_interface.hpp"
 #include "src/surf/xml/platf.hpp" // FIXME: move that back to the parsing area
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_cluster_torus, surf_route_cluster, "Torus Routing part of surf");
 
-
 inline unsigned int *rankId_to_coords(int rankId, xbt_dynar_t dimensions)
 {
 
similarity index 72%
rename from src/surf/surf_routing_cluster_torus.hpp
rename to src/surf/AsClusterTorus.hpp
index ecb674e..58f7478 100644 (file)
@@ -1,18 +1,12 @@
-/* Copyright (c) 2014-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2014-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-
 #ifndef SURF_ROUTING_CLUSTER_TORUS_HPP_
 #define SURF_ROUTING_CLUSTER_TORUS_HPP_
 
-#include <xbt/base.h>
-
-#include "surf_routing_none.hpp"
-#include "network_interface.hpp"
-#include "surf_routing_cluster.hpp"
+#include "src/surf/AsCluster.hpp"
 
 namespace simgrid {
   namespace surf {
@@ -25,7 +19,7 @@ namespace simgrid {
       void getRouteAndLatency(NetCard * src, NetCard * dst, sg_platf_route_cbarg_t into, double *latency) override;
       void parse_specific_arguments(sg_platf_cluster_cbarg_t cluster) override;
     private:
-      xbt_dynar_t dimensions_ = NULL;
+      xbt_dynar_t dimensions_ = nullptr;
     };
 
   }}
similarity index 98%
rename from src/surf/surf_routing_dijkstra.cpp
rename to src/surf/AsDijkstra.cpp
index 6ee469c..bcdb23b 100644 (file)
@@ -1,10 +1,9 @@
-/* Copyright (c) 2009-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2009-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "src/surf/surf_routing_dijkstra.hpp"
+#include "src/surf/AsDijkstra.hpp"
 #include "src/surf/network_interface.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_dijkstra, surf, "Routing part of surf -- dijkstra routing logic");
similarity index 88%
rename from src/surf/surf_routing_dijkstra.hpp
rename to src/surf/AsDijkstra.hpp
index 849c682..346e20a 100644 (file)
@@ -1,16 +1,13 @@
-/* Copyright (c) 2013-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2013-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include <xbt/base.h>
-
-#include "surf_routing_RoutedGraph.hpp"
-
 #ifndef SURF_ROUTING_DIJKSTRA_HPP_
 #define SURF_ROUTING_DIJKSTRA_HPP_
 
+#include "src/surf/AsRoutedGraph.hpp"
+
 typedef struct graph_node_data {
   int id;
   int graph_id;                 /* used for caching internal graph id's */
@@ -32,10 +29,8 @@ namespace surf {
  * Classes *
  ***********/
 
-class XBT_PRIVATE AsDijkstra;
-
 /** Dijkstra routing data: fast initialization, slow lookup, small memory requirements, shortest path routing only */
-class AsDijkstra : public AsRoutedGraph {
+class XBT_PRIVATE AsDijkstra : public AsRoutedGraph {
 public:
   AsDijkstra(const char*name, bool cached);
   void Seal() override;
similarity index 97%
rename from src/surf/surf_routing_floyd.cpp
rename to src/surf/AsFloyd.cpp
index fbf29d5..ec45a1c 100644 (file)
@@ -1,10 +1,11 @@
-/* Copyright (c) 2009-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2009-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "src/surf/surf_routing_floyd.hpp"
+#include "xbt/log.h"
+#include "xbt/dynar.h"
+#include "src/surf/AsFloyd.hpp"
 #include "src/surf/network_interface.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_floyd, surf, "Routing part of surf");
similarity index 73%
rename from src/surf/surf_routing_floyd.hpp
rename to src/surf/AsFloyd.hpp
index e5258f8..39ba437 100644 (file)
@@ -1,27 +1,18 @@
-/* Copyright (c) 2013-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2013-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-
 #ifndef SURF_ROUTING_FLOYD_HPP_
 #define SURF_ROUTING_FLOYD_HPP_
 
-#include <xbt/base.h>
-
-#include "surf_routing_RoutedGraph.hpp"
+#include "src/surf/AsRoutedGraph.hpp"
 
 namespace simgrid {
 namespace surf {
 
-/***********
- * Classes *
- ***********/
-class XBT_PRIVATE AsFloyd;
-
 /** Floyd routing data: slow initialization, fast lookup, lesser memory requirements, shortest path routing only */
-class AsFloyd: public AsRoutedGraph {
+class XBT_PRIVATE AsFloyd: public AsRoutedGraph {
 public:
   AsFloyd(const char *name);
   ~AsFloyd();
similarity index 96%
rename from src/surf/surf_routing_full.cpp
rename to src/surf/AsFull.cpp
index 4262bc9..dbe966e 100644 (file)
@@ -1,10 +1,9 @@
-/* Copyright (c) 2009-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2009-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "src/surf/surf_routing_full.hpp"
+#include "src/surf/AsFull.hpp"
 #include "src/surf/network_interface.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_full, surf, "Routing part of surf");
similarity index 69%
rename from src/surf/surf_routing_full.hpp
rename to src/surf/AsFull.hpp
index 0abbae3..df5fee5 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (c) 2013-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2013-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -7,20 +6,13 @@
 #ifndef SURF_ROUTING_FULL_HPP_
 #define SURF_ROUTING_FULL_HPP_
 
-#include <xbt/base.h>
-
-#include "surf_routing_RoutedGraph.hpp"
+#include "src/surf/AsRoutedGraph.hpp"
 
 namespace simgrid {
 namespace surf {
 
-/***********
- * Classes *
- ***********/
-class XBT_PRIVATE AsFull;
-
 /** Full routing: fast, large memory requirements, fully expressive */
-class AsFull: public AsRoutedGraph {
+class XBT_PRIVATE AsFull: public AsRoutedGraph {
 public:
 
   AsFull(const char*name);
index 36666af..5979392 100644 (file)
@@ -1,12 +1,10 @@
-/* Copyright (c) 2006-2014. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2006-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "xbt/log.h"
 
-#include "simgrid/s4u/As.hpp"
 #include "src/surf/AsImpl.hpp"
 #include "src/surf/network_interface.hpp" // Link FIXME: move to proper header
 
index 50da4a2..332335c 100644 (file)
@@ -6,13 +6,10 @@
 #ifndef SIMGRID_SURF_AS_HPP
 #define SIMGRID_SURF_AS_HPP
 
-#include "xbt/base.h"
 #include "xbt/graph.h"
 
 #include "simgrid/s4u/forward.hpp"
 #include "simgrid/s4u/As.hpp"
-#include <vector>
-#include <map>
 
 #include "src/surf/xml/platf_private.hpp" // FIXME: kill sg_platf_route_cbarg_t to remove that UGLY include
 
similarity index 78%
rename from src/surf/surf_routing_none.cpp
rename to src/surf/AsNone.cpp
index 3ef381f..396a9fc 100644 (file)
@@ -1,10 +1,9 @@
-/* Copyright (c) 2009-2011, 2013-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2009-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "src/surf/surf_routing_none.hpp"
+#include "src/surf/AsNone.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_none, surf, "Routing part of surf");
 
similarity index 84%
rename from src/surf/surf_routing_none.hpp
rename to src/surf/AsNone.hpp
index 82fdd85..9976d1b 100644 (file)
@@ -1,14 +1,13 @@
-/* Copyright (c) 2013-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2013-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "src/surf/AsImpl.hpp"
-
 #ifndef SURF_ROUTING_NONE_HPP_
 #define SURF_ROUTING_NONE_HPP_
 
+#include "src/surf/AsImpl.hpp"
+
 namespace simgrid {
 namespace surf {
 
similarity index 97%
rename from src/surf/surf_routing_RoutedGraph.cpp
rename to src/surf/AsRoutedGraph.cpp
index f40ee1c..e58e197 100644 (file)
@@ -1,22 +1,16 @@
-/* Copyright (c) 2009-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2009-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "surf_routing_RoutedGraph.hpp"
-
-#include <cstdlib>
-
-#include <algorithm>
-
 #include "xbt/dict.h"
 #include "xbt/log.h"
 #include "xbt/sysdep.h"
 #include "xbt/dynar.h"
 #include "xbt/graph.h"
 
-#include "network_interface.hpp"
+#include "src/surf/AsRoutedGraph.hpp"
+#include "src/surf/network_interface.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_routing_generic, surf_route, "Generic implementation of the surf routing");
 
similarity index 79%
rename from src/surf/surf_routing_RoutedGraph.hpp
rename to src/surf/AsRoutedGraph.hpp
index 1eea4f9..4079e8f 100644 (file)
@@ -1,22 +1,16 @@
-/* Copyright (c) 2013-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2013-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include <xbt/base.h>
-
-#include "surf_routing.hpp"
-#include "src/surf/AsImpl.hpp"
-
 #ifndef SURF_ROUTING_GENERIC_HPP_
 #define SURF_ROUTING_GENERIC_HPP_
 
+#include "src/surf/AsImpl.hpp"
+
 namespace simgrid {
 namespace surf {
 
-class XBT_PRIVATE AsRoutedGraph;
-
 class XBT_PRIVATE AsRoutedGraph : public AsImpl {
 public:
   AsRoutedGraph(const char*name);
similarity index 95%
rename from src/surf/surf_routing_vivaldi.cpp
rename to src/surf/AsVivaldi.cpp
index 9ac925a..c935f6c 100644 (file)
@@ -1,11 +1,10 @@
-/* Copyright (c) 2013-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2013-2016. The SimGrid Team. All rights reserved.         */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "surf_routing_vivaldi.hpp"
-#include "network_interface.hpp"
+#include "src/surf/AsVivaldi.hpp"
+#include "src/surf/network_interface.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_vivaldi, surf, "Routing part of surf");
 
similarity index 51%
rename from src/surf/surf_routing_vivaldi.hpp
rename to src/surf/AsVivaldi.hpp
index 3795d69..1e9c632 100644 (file)
@@ -1,29 +1,17 @@
-/* Copyright (c) 2013-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2013-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "surf_routing_RoutedGraph.hpp"
-#include "xbt/swag.h"
-
-
 #ifndef SURF_ROUTING_VIVALDI_HPP_
 #define SURF_ROUTING_VIVALDI_HPP_
 
-/* ************************************************** */
-/* **************  Vivaldi ROUTING   **************** */
-XBT_PRIVATE AS_t model_vivaldi_create(void);      /* create structures for vivaldi routing model */
+#include "src/surf/AsRoutedGraph.hpp"
 
 namespace simgrid {
 namespace surf {
 
-/***********
- * Classes *
- ***********/
-class XBT_PRIVATE AsVivaldi;
-
-class AsVivaldi: public AsRoutedGraph {
+class XBT_PRIVATE AsVivaldi: public AsRoutedGraph {
 public:
   AsVivaldi(const char *name);
   ~AsVivaldi() {};
index 4cbed66..fbf5989 100644 (file)
 #include "src/surf/cpu_interface.hpp"
 #include "src/surf/network_interface.hpp"
 #include "surf/surf_routing.h" // FIXME: brain dead public header
-#include "src/surf/AsImpl.hpp"
 
-#include "src/surf/surf_routing_cluster.hpp"
-#include "src/surf/surf_routing_cluster_torus.hpp"
-#include "src/surf/surf_routing_cluster_fat_tree.hpp"
-#include "src/surf/surf_routing_dijkstra.hpp"
-#include "src/surf/surf_routing_floyd.hpp"
-#include "src/surf/surf_routing_full.hpp"
-#include "src/surf/surf_routing_vivaldi.hpp"
+#include "src/surf/AsImpl.hpp"
+#include "src/surf/AsCluster.hpp"
+#include "src/surf/AsClusterTorus.hpp"
+#include "src/surf/AsClusterFatTree.hpp"
+#include "src/surf/AsDijkstra.hpp"
+#include "src/surf/AsFloyd.hpp"
+#include "src/surf/AsFull.hpp"
+#include "src/surf/AsNone.hpp"
+#include "src/surf/AsVivaldi.hpp"
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_parse);
 
index fb652db..2dbe05f 100644 (file)
@@ -7,7 +7,6 @@
 #include "src/surf/HostImpl.hpp"
 #include "surf_interface.hpp"
 #include "network_interface.hpp"
-#include "surf_routing_cluster.hpp"
 #include "src/instr/instr_private.h"
 #include "plugins/energy.hpp"
 #include "virtual_machine.hpp"
index d9847e2..4dba6f1 100644 (file)
@@ -5,18 +5,11 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "surf_routing.hpp"
-#include "surf_routing_cluster.hpp"
 
 #include "simgrid/sg_config.h"
 #include "storage_interface.hpp"
 
 #include "src/surf/AsImpl.hpp"
-#include "src/surf/surf_routing_cluster_torus.hpp"
-#include "src/surf/surf_routing_cluster_fat_tree.hpp"
-#include "src/surf/surf_routing_dijkstra.hpp"
-#include "src/surf/surf_routing_floyd.hpp"
-#include "src/surf/surf_routing_full.hpp"
-#include "src/surf/surf_routing_vivaldi.hpp"
 #include "src/surf/xml/platf.hpp" // FIXME: move that back to the parsing area
 
 #include <vector>
index e421078..7148f45 100644 (file)
@@ -60,21 +60,23 @@ set(EXTRA_DIST
   src/surf/xml/simgrid_dtd.h
   src/surf/xml/simgrid_dtd.c
   src/surf/xml/surfxml_sax_cb.cpp
+
   src/surf/AsImpl.hpp
+  src/surf/AsCluster.hpp
+  src/surf/AsClusterFatTree.hpp
+  src/surf/AsClusterTorus.hpp
+  src/surf/AsDijkstra.hpp
+  src/surf/AsFloyd.hpp
+  src/surf/AsFull.hpp
+  src/surf/AsRoutedGraph.hpp
+  src/surf/AsNone.hpp
+  src/surf/AsVivaldi.hpp
+
   src/surf/storage_interface.hpp
   src/surf/storage_n11.hpp
   src/surf/surf_interface.hpp
   src/surf/surf_private.h
   src/surf/surf_routing.hpp
-  src/surf/surf_routing_cluster.hpp
-  src/surf/surf_routing_cluster_fat_tree.hpp
-  src/surf/surf_routing_cluster_torus.hpp
-  src/surf/surf_routing_dijkstra.hpp
-  src/surf/surf_routing_floyd.hpp
-  src/surf/surf_routing_full.hpp
-  src/surf/surf_routing_RoutedGraph.hpp
-  src/surf/surf_routing_none.hpp
-  src/surf/surf_routing_vivaldi.hpp
   src/surf/vm_hl13.hpp
   src/surf/PropertyHolder.hpp
   src/surf/virtual_machine.hpp
@@ -293,6 +295,16 @@ set(NS3_SRC
 
 set(SURF_SRC
   src/surf/AsImpl.cpp
+  src/surf/AsCluster.cpp
+  src/surf/AsClusterFatTree.cpp
+  src/surf/AsClusterTorus.cpp
+  src/surf/AsDijkstra.cpp
+  src/surf/AsFloyd.cpp
+  src/surf/AsFull.cpp
+  src/surf/AsRoutedGraph.cpp
+  src/surf/AsNone.cpp
+  src/surf/AsVivaldi.cpp
+  
   src/surf/cpu_cas01.cpp
   src/surf/cpu_interface.cpp
   src/surf/cpu_ti.cpp
@@ -314,15 +326,6 @@ set(SURF_SRC
   src/surf/surf_c_bindings.cpp
   src/surf/surf_interface.cpp
   src/surf/surf_routing.cpp
-  src/surf/surf_routing_cluster.cpp
-  src/surf/surf_routing_cluster_fat_tree.cpp
-  src/surf/surf_routing_cluster_torus.cpp
-  src/surf/surf_routing_dijkstra.cpp
-  src/surf/surf_routing_floyd.cpp
-  src/surf/surf_routing_full.cpp
-  src/surf/surf_routing_RoutedGraph.cpp
-  src/surf/surf_routing_none.cpp
-  src/surf/surf_routing_vivaldi.cpp
   src/surf/xml/platf.hpp
   src/surf/xml/platf_private.hpp
   src/surf/xml/surfxml_sax_cb.cpp