X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/850b11f6847edce3023ef068f2df7417691e2df3..ad32fd753f73b8a8a14242781eb011e78446995a:/src/surf/surf_routing_floyd.hpp diff --git a/src/surf/surf_routing_floyd.hpp b/src/surf/surf_routing_floyd.hpp index 5f498f4357..e5258f83bd 100644 --- a/src/surf/surf_routing_floyd.hpp +++ b/src/surf/surf_routing_floyd.hpp @@ -10,7 +10,7 @@ #include -#include "surf_routing_generic.hpp" +#include "surf_routing_RoutedGraph.hpp" namespace simgrid { namespace surf { @@ -20,22 +20,21 @@ namespace surf { ***********/ class XBT_PRIVATE AsFloyd; -class AsFloyd: public AsGeneric { +/** Floyd routing data: slow initialization, fast lookup, lesser memory requirements, shortest path routing only */ +class AsFloyd: public AsRoutedGraph { public: - AsFloyd(); + AsFloyd(const char *name); ~AsFloyd(); void getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbarg_t into, double *latency) override; - xbt_dynar_t getOneLinkRoutes() override; - void parseASroute(sg_platf_route_cbarg_t route) override; - void parseRoute(sg_platf_route_cbarg_t route) override; - void end(); + void addRoute(sg_platf_route_cbarg_t route) override; + void Seal() override; private: /* vars to compute the Floyd algorithm. */ - int *p_predecessorTable; - double *p_costTable; - sg_platf_route_cbarg_t *p_linkTable; + int *predecessorTable_; + double *costTable_; + sg_platf_route_cbarg_t *linkTable_; }; }