Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move the routing logic to its own directory
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 25 Jul 2016 10:00:17 +0000 (12:00 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 25 Jul 2016 10:14:54 +0000 (12:14 +0200)
27 files changed:
src/routing/AsCluster.cpp [moved from src/surf/AsCluster.cpp with 99% similarity]
src/routing/AsCluster.hpp [moved from src/surf/AsCluster.hpp with 97% similarity]
src/routing/AsClusterDragonfly.cpp [moved from src/surf/AsClusterDragonfly.cpp with 99% similarity]
src/routing/AsClusterDragonfly.hpp [moved from src/surf/AsClusterDragonfly.hpp with 98% similarity]
src/routing/AsClusterFatTree.cpp [moved from src/surf/AsClusterFatTree.cpp with 99% similarity]
src/routing/AsClusterFatTree.hpp [moved from src/surf/AsClusterFatTree.hpp with 99% similarity]
src/routing/AsClusterTorus.cpp [moved from src/surf/AsClusterTorus.cpp with 99% similarity]
src/routing/AsClusterTorus.hpp [moved from src/surf/AsClusterTorus.hpp with 96% similarity]
src/routing/AsDijkstra.cpp [moved from src/surf/AsDijkstra.cpp with 99% similarity]
src/routing/AsDijkstra.hpp [moved from src/surf/AsDijkstra.hpp with 98% similarity]
src/routing/AsFloyd.cpp [moved from src/surf/AsFloyd.cpp with 99% similarity]
src/routing/AsFloyd.hpp [moved from src/surf/AsFloyd.hpp with 95% similarity]
src/routing/AsFull.cpp [moved from src/surf/AsFull.cpp with 99% similarity]
src/routing/AsFull.hpp [moved from src/surf/AsFull.hpp with 95% similarity]
src/routing/AsImpl.cpp [moved from src/surf/AsImpl.cpp with 99% similarity]
src/routing/AsImpl.hpp [moved from src/surf/AsImpl.hpp with 100% similarity]
src/routing/AsNone.cpp [moved from src/surf/AsNone.cpp with 95% similarity]
src/routing/AsNone.hpp [moved from src/surf/AsNone.hpp with 95% similarity]
src/routing/AsRoutedGraph.cpp [moved from src/surf/AsRoutedGraph.cpp with 99% similarity]
src/routing/AsRoutedGraph.hpp [moved from src/surf/AsRoutedGraph.hpp with 96% similarity]
src/routing/AsVivaldi.cpp [moved from src/surf/AsVivaldi.cpp with 98% similarity]
src/routing/AsVivaldi.hpp [moved from src/surf/AsVivaldi.hpp with 95% similarity]
src/surf/instr_routing.cpp
src/surf/sg_platf.cpp
src/surf/surf_routing.cpp
src/surf/surf_routing.hpp
tools/cmake/DefinePackages.cmake

similarity index 99%
rename from src/surf/AsCluster.cpp
rename to src/routing/AsCluster.cpp
index 100ff55..b885a6d 100644 (file)
@@ -3,7 +3,7 @@
 /* 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/AsCluster.hpp"
+#include "src/routing/AsCluster.hpp"
 #include "src/surf/network_interface.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_cluster, surf, "Routing part of surf");
similarity index 97%
rename from src/surf/AsCluster.hpp
rename to src/routing/AsCluster.hpp
index 3e0493b..803524d 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SIMGRID_ROUTING_CLUSTER_HPP_
 #define SIMGRID_ROUTING_CLUSTER_HPP_
 
-#include "src/surf/AsImpl.hpp"
+#include "src/routing/AsImpl.hpp"
 
 namespace simgrid {
 namespace routing {
similarity index 99%
rename from src/surf/AsClusterDragonfly.cpp
rename to src/routing/AsClusterDragonfly.cpp
index e3eff8c..c0a5bdf 100644 (file)
@@ -3,7 +3,7 @@
 /* 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/AsClusterDragonfly.hpp"
+#include "src/routing/AsClusterDragonfly.hpp"
 #include "src/surf/network_interface.hpp"
 #include "src/surf/xml/platf.hpp" // FIXME: move that back to the parsing area
 
similarity index 98%
rename from src/surf/AsClusterDragonfly.hpp
rename to src/routing/AsClusterDragonfly.hpp
index f587ae4..3e3c080 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SURF_ROUTING_CLUSTER_DRAGONFLY_HPP_
 #define SURF_ROUTING_CLUSTER_DRAGONFLY_HPP_
 
-#include "src/surf/AsCluster.hpp"
+#include "src/routing/AsCluster.hpp"
 
 namespace simgrid {
   namespace routing {
similarity index 99%
rename from src/surf/AsClusterFatTree.cpp
rename to src/routing/AsClusterFatTree.cpp
index 18df2ff..d6025d1 100644 (file)
@@ -6,7 +6,7 @@
 #include <fstream>
 #include <sstream>
 
-#include "src/surf/AsClusterFatTree.hpp"
+#include "src/routing/AsClusterFatTree.hpp"
 #include "src/surf/network_interface.hpp"
 
 #include "xbt/lib.h"
similarity index 99%
rename from src/surf/AsClusterFatTree.hpp
rename to src/routing/AsClusterFatTree.hpp
index 0b36185..31ef264 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SIMGRID_ROUTING_CLUSTER_FAT_TREE_HPP_
 #define SIMGRID_ROUTING_CLUSTER_FAT_TREE_HPP_
 
-#include "src/surf/AsCluster.hpp"
+#include "src/routing/AsCluster.hpp"
 
 namespace simgrid {
 namespace routing {
similarity index 99%
rename from src/surf/AsClusterTorus.cpp
rename to src/routing/AsClusterTorus.cpp
index acf6ebf..b5a9bcb 100644 (file)
@@ -3,7 +3,7 @@
 /* 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/AsClusterTorus.hpp"
+#include "src/routing/AsClusterTorus.hpp"
 #include "src/surf/network_interface.hpp"
 #include "src/surf/xml/platf.hpp" // FIXME: move that back to the parsing area
 
similarity index 96%
rename from src/surf/AsClusterTorus.hpp
rename to src/routing/AsClusterTorus.hpp
index 6571971..e3953fc 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SURF_ROUTING_CLUSTER_TORUS_HPP_
 #define SURF_ROUTING_CLUSTER_TORUS_HPP_
 
-#include "src/surf/AsCluster.hpp"
+#include "src/routing/AsCluster.hpp"
 
 namespace simgrid {
   namespace routing {
similarity index 99%
rename from src/surf/AsDijkstra.cpp
rename to src/routing/AsDijkstra.cpp
index 377d2d3..b30fc83 100644 (file)
@@ -3,7 +3,7 @@
 /* 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/AsDijkstra.hpp"
+#include "src/routing/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 98%
rename from src/surf/AsDijkstra.hpp
rename to src/routing/AsDijkstra.hpp
index 7d315a7..e2e86d9 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SURF_ROUTING_DIJKSTRA_HPP_
 #define SURF_ROUTING_DIJKSTRA_HPP_
 
-#include "src/surf/AsRoutedGraph.hpp"
+#include "src/routing/AsRoutedGraph.hpp"
 
 typedef struct graph_node_data {
   int id;
similarity index 99%
rename from src/surf/AsFloyd.cpp
rename to src/routing/AsFloyd.cpp
index 8c835e5..b7af52b 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "xbt/log.h"
 #include "xbt/dynar.h"
-#include "src/surf/AsFloyd.hpp"
+#include "src/routing/AsFloyd.hpp"
 #include "src/surf/network_interface.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_floyd, surf, "Routing part of surf");
similarity index 95%
rename from src/surf/AsFloyd.hpp
rename to src/routing/AsFloyd.hpp
index 2cc4cf2..af0c5b7 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SURF_ROUTING_FLOYD_HPP_
 #define SURF_ROUTING_FLOYD_HPP_
 
-#include "src/surf/AsRoutedGraph.hpp"
+#include "src/routing/AsRoutedGraph.hpp"
 
 namespace simgrid {
 namespace routing {
similarity index 99%
rename from src/surf/AsFull.cpp
rename to src/routing/AsFull.cpp
index 3b931a3..339b45c 100644 (file)
@@ -3,7 +3,7 @@
 /* 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/AsFull.hpp"
+#include "src/routing/AsFull.hpp"
 #include "src/surf/network_interface.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_full, surf, "Routing part of surf");
similarity index 95%
rename from src/surf/AsFull.hpp
rename to src/routing/AsFull.hpp
index cfd7e5e..5ea60ff 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SIMGRID_ROUTING_FULL_HPP_
 #define SIMGRID_ROUTING_FULL_HPP_
 
-#include "src/surf/AsRoutedGraph.hpp"
+#include "src/routing/AsRoutedGraph.hpp"
 
 namespace simgrid {
 namespace routing {
similarity index 99%
rename from src/surf/AsImpl.cpp
rename to src/routing/AsImpl.cpp
index 291a79b..c76003f 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "xbt/log.h"
 
-#include "src/surf/AsImpl.hpp"
+#include "src/routing/AsImpl.hpp"
 #include "src/surf/network_interface.hpp" // Link FIXME: move to proper header
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(AsImpl,surf, "Implementation of S4U autonomous systems");
similarity index 100%
rename from src/surf/AsImpl.hpp
rename to src/routing/AsImpl.hpp
similarity index 95%
rename from src/surf/AsNone.cpp
rename to src/routing/AsNone.cpp
index 3683fa3..8213101 100644 (file)
@@ -7,7 +7,7 @@
 #include <xbt/graph.h>
 #include <xbt/log.h>
 
-#include "src/surf/AsNone.hpp"
+#include "src/routing/AsNone.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_none, surf, "Routing part of surf");
 
similarity index 95%
rename from src/surf/AsNone.hpp
rename to src/routing/AsNone.hpp
index 30708f9..1490dd3 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SURF_ROUTING_NONE_HPP_
 #define SURF_ROUTING_NONE_HPP_
 
-#include "src/surf/AsImpl.hpp"
+#include "src/routing/AsImpl.hpp"
 
 namespace simgrid {
 namespace routing {
similarity index 99%
rename from src/surf/AsRoutedGraph.cpp
rename to src/routing/AsRoutedGraph.cpp
index c849af3..7117c1d 100644 (file)
@@ -9,7 +9,7 @@
 #include "xbt/dynar.h"
 #include "xbt/graph.h"
 
-#include "src/surf/AsRoutedGraph.hpp"
+#include "src/routing/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 96%
rename from src/surf/AsRoutedGraph.hpp
rename to src/routing/AsRoutedGraph.hpp
index c5fb0ad..5e9b00f 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SIMGRID_ROUTING_GENERIC_HPP_
 #define SIMGRID_ROUTING_GENERIC_HPP_
 
-#include "src/surf/AsImpl.hpp"
+#include "src/routing/AsImpl.hpp"
 
 namespace simgrid {
 namespace routing {
similarity index 98%
rename from src/surf/AsVivaldi.cpp
rename to src/routing/AsVivaldi.cpp
index 9a3bf1a..d835dab 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <simgrid/s4u/host.hpp>
 
-#include "src/surf/AsVivaldi.hpp"
+#include "src/routing/AsVivaldi.hpp"
 #include "src/surf/network_interface.hpp"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_vivaldi, surf, "Routing part of surf");
similarity index 95%
rename from src/surf/AsVivaldi.hpp
rename to src/routing/AsVivaldi.hpp
index a2ba680..712db43 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef SURF_ROUTING_VIVALDI_HPP_
 #define SURF_ROUTING_VIVALDI_HPP_
 
-#include "src/surf/AsCluster.hpp"
+#include "src/routing/AsCluster.hpp"
 
 namespace simgrid {
 namespace routing {
index c52abda..84c9590 100644 (file)
@@ -6,7 +6,7 @@
 
 #include "src/instr/instr_private.h"
 
-#include "src/surf/AsImpl.hpp"
+#include "src/routing/AsImpl.hpp"
 #include "simgrid/s4u/engine.hpp"
 #include "surf/surf.h"
 #include "src/surf/xml/platf_private.hpp"
index 56a02ef..8796ae5 100644 (file)
 #include "src/surf/network_interface.hpp"
 #include "surf/surf_routing.h" // FIXME: brain dead public header
 
-#include "src/surf/AsImpl.hpp"
-#include "src/surf/AsCluster.hpp"
-#include "src/surf/AsClusterTorus.hpp"
-#include "src/surf/AsClusterFatTree.hpp"
-#include "src/surf/AsClusterDragonfly.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"
+#include "src/routing/AsImpl.hpp"
+#include "src/routing/AsCluster.hpp"
+#include "src/routing/AsClusterTorus.hpp"
+#include "src/routing/AsClusterFatTree.hpp"
+#include "src/routing/AsClusterDragonfly.hpp"
+#include "src/routing/AsDijkstra.hpp"
+#include "src/routing/AsFloyd.hpp"
+#include "src/routing/AsFull.hpp"
+#include "src/routing/AsNone.hpp"
+#include "src/routing/AsVivaldi.hpp"
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_parse);
 
index e79fbb0..233e665 100644 (file)
@@ -15,7 +15,7 @@
 #include "simgrid/sg_config.h"
 #include "storage_interface.hpp"
 
-#include "src/surf/AsImpl.hpp"
+#include "src/routing/AsImpl.hpp"
 #include "src/surf/xml/platf.hpp" // FIXME: move that back to the parsing area
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route, surf, "Routing part of surf");
index 274ff24..61983b4 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "surf_interface.hpp"
 #include "src/surf/xml/platf_private.hpp" // FIXME: including this here is pure madness. KILKILKIL XML.
-#include "src/surf/AsImpl.hpp"
+#include "src/routing/AsImpl.hpp"
 
 #include <float.h>
 #include <vector>
index 87bdcd2..5d27441 100644 (file)
@@ -63,17 +63,17 @@ set(EXTRA_DIST
   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/AsClusterDragonfly.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/routing/AsImpl.hpp
+  src/routing/AsCluster.hpp
+  src/routing/AsClusterFatTree.hpp
+  src/routing/AsClusterTorus.hpp
+  src/routing/AsClusterDragonfly.hpp
+  src/routing/AsDijkstra.hpp
+  src/routing/AsFloyd.hpp
+  src/routing/AsFull.hpp
+  src/routing/AsRoutedGraph.hpp
+  src/routing/AsNone.hpp
+  src/routing/AsVivaldi.hpp
 
   src/surf/storage_interface.hpp
   src/surf/storage_n11.hpp
@@ -289,17 +289,17 @@ set(NS3_SRC  src/surf/network_ns3.cpp
              src/surf/ns3/ns3_simulator.cc )
 
 set(SURF_SRC
-  src/surf/AsImpl.cpp
-  src/surf/AsCluster.cpp
-  src/surf/AsClusterFatTree.cpp
-  src/surf/AsClusterTorus.cpp
-  src/surf/AsClusterDragonfly.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/routing/AsImpl.cpp
+  src/routing/AsCluster.cpp
+  src/routing/AsClusterFatTree.cpp
+  src/routing/AsClusterTorus.cpp
+  src/routing/AsClusterDragonfly.cpp
+  src/routing/AsDijkstra.cpp
+  src/routing/AsFloyd.cpp
+  src/routing/AsFull.cpp
+  src/routing/AsRoutedGraph.cpp
+  src/routing/AsNone.cpp
+  src/routing/AsVivaldi.cpp
   
   src/surf/cpu_cas01.cpp
   src/surf/cpu_interface.cpp