Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename parseBypassroute into addBypassRoute
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 20 Feb 2016 01:05:43 +0000 (02:05 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 20 Feb 2016 01:05:43 +0000 (02:05 +0100)
src/surf/sg_platf.cpp
src/surf/surf_routing.cpp
src/surf/surf_routing.hpp
src/surf/surf_routing_RoutedGraph.cpp
src/surf/surf_routing_RoutedGraph.hpp

index e22a05c..500f481 100644 (file)
@@ -514,7 +514,7 @@ void sg_platf_new_route(sg_platf_route_cbarg_t route)
 
 void sg_platf_new_bypassRoute(sg_platf_route_cbarg_t bypassRoute)
 {
 
 void sg_platf_new_bypassRoute(sg_platf_route_cbarg_t bypassRoute)
 {
-  routing_get_current()->parseBypassroute(bypassRoute);
+  routing_get_current()->addBypassRoute(bypassRoute);
 }
 
 void sg_platf_new_process(sg_platf_process_cbarg_t process)
 }
 
 void sg_platf_new_process(sg_platf_process_cbarg_t process)
index 581e2d3..6b7959a 100644 (file)
@@ -62,7 +62,7 @@ namespace surf {
   void As::addRoute(sg_platf_route_cbarg_t /*route*/){
     xbt_die("AS %s does not accept new routes (wrong class).",name_);
   }
   void As::addRoute(sg_platf_route_cbarg_t /*route*/){
     xbt_die("AS %s does not accept new routes (wrong class).",name_);
   }
-  void As::parseBypassroute(sg_platf_route_cbarg_t /*e_route*/){
+  void As::addBypassRoute(sg_platf_route_cbarg_t /*e_route*/){
     xbt_die("AS %s does not accept new bypass routes (wrong class).",name_);
   }
 
     xbt_die("AS %s does not accept new bypass routes (wrong class).",name_);
   }
 
index 8b30f5f..062c173 100644 (file)
@@ -101,7 +101,7 @@ public:
   /* Add content to the AS, at parsing time. It should be sealed afterward. */
   virtual int addComponent(NetCard *elm); /* A host, a router or an AS, whatever */
   virtual void addRoute(sg_platf_route_cbarg_t route);
   /* Add content to the AS, at parsing time. It should be sealed afterward. */
   virtual int addComponent(NetCard *elm); /* A host, a router or an AS, whatever */
   virtual void addRoute(sg_platf_route_cbarg_t route);
-  virtual void parseBypassroute(sg_platf_route_cbarg_t e_route);
+  virtual void addBypassRoute(sg_platf_route_cbarg_t e_route);
 };
 
 struct XBT_PRIVATE NetCardImpl : public NetCard {
 };
 
 struct XBT_PRIVATE NetCardImpl : public NetCard {
index 5da9ba1..0bfcb66 100644 (file)
@@ -44,7 +44,7 @@ AsRoutedGraph::~AsRoutedGraph()
   xbt_dict_free(&bypassRoutes_);
 }
 
   xbt_dict_free(&bypassRoutes_);
 }
 
-void AsRoutedGraph::parseBypassroute(sg_platf_route_cbarg_t e_route)
+void AsRoutedGraph::addBypassRoute(sg_platf_route_cbarg_t e_route)
 {
   char *src = (char*)(e_route->src);
   char *dst = (char*)(e_route->dst);
 {
   char *src = (char*)(e_route->src);
   char *dst = (char*)(e_route->dst);
index 5d07f7a..3de0bfc 100644 (file)
@@ -25,7 +25,7 @@ public:
   virtual sg_platf_route_cbarg_t getBypassRoute(NetCard *src, NetCard *dst, double *lat) override;
 
   /* Add content to the AS, at parsing time */
   virtual sg_platf_route_cbarg_t getBypassRoute(NetCard *src, NetCard *dst, double *lat) override;
 
   /* Add content to the AS, at parsing time */
-  virtual void parseBypassroute(sg_platf_route_cbarg_t e_route) override;
+  virtual void addBypassRoute(sg_platf_route_cbarg_t e_route) override;
 
   virtual sg_platf_route_cbarg_t newExtendedRoute(e_surf_routing_hierarchy_t hierarchy, sg_platf_route_cbarg_t routearg, int change_order);
 protected:
 
   virtual sg_platf_route_cbarg_t newExtendedRoute(e_surf_routing_hierarchy_t hierarchy, sg_platf_route_cbarg_t routearg, int change_order);
 protected: