Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
routing: move an empty implementation to the super class
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 13 Feb 2016 14:29:51 +0000 (15:29 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 13 Feb 2016 14:29:51 +0000 (15:29 +0100)
src/surf/surf_routing.cpp
src/surf/surf_routing.hpp
src/surf/surf_routing_none.cpp
src/surf/surf_routing_none.hpp

index b484350..fbc8c5c 100644 (file)
@@ -43,6 +43,11 @@ namespace surf {
       delete netcard_;
   }
 
       delete netcard_;
   }
 
+  sg_platf_route_cbarg_t As::getBypassRoute(NetCard * /*src*/, NetCard * /*dst*/, double * /*lat*/) {
+    return NULL;
+  }
+
+
   int As::addComponent(NetCard *elm) {
     XBT_DEBUG("Load component \"%s\"", elm->getName());
     xbt_dynar_push_as(vertices_, NetCard*, elm);
   int As::addComponent(NetCard *elm) {
     XBT_DEBUG("Load component \"%s\"", elm->getName());
     xbt_dynar_push_as(vertices_, NetCard*, elm);
index a97b766..a34a85e 100644 (file)
@@ -96,7 +96,7 @@ public:
 
   virtual void getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges)=0;
 
 
   virtual void getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges)=0;
 
-  virtual sg_platf_route_cbarg_t getBypassRoute(NetCard *src, NetCard *dst,double *lat)=0;
+  virtual sg_platf_route_cbarg_t getBypassRoute(NetCard *src, NetCard *dst,double *lat);
 
   /* 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 */
 
   /* 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 */
index 8820722..cfb4587 100644 (file)
@@ -31,9 +31,5 @@ void AsNone::getGraph(xbt_graph_t /*graph*/, xbt_dict_t /*nodes*/, xbt_dict_t /*
 {
   XBT_INFO("No routing no graph");
 }
 {
   XBT_INFO("No routing no graph");
 }
-
-sg_platf_route_cbarg_t AsNone::getBypassRoute(NetCard * /*src*/, NetCard * /*dst*/, double * /*lat*/) {
-  return NULL;
-}
 }
 }
 }
 }
index c1d45b1..3c471b1 100644 (file)
@@ -24,7 +24,6 @@ public:
   void getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbarg_t into, double *latency) override;
   xbt_dynar_t getOneLinkRoutes() override;
   void getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges) override;
   void getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbarg_t into, double *latency) override;
   xbt_dynar_t getOneLinkRoutes() override;
   void getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges) override;
-  sg_platf_route_cbarg_t getBypassRoute(NetCard *src, NetCard *dst, double *lat) override;
 };
 
 }
 };
 
 }