#include <xbt/base.h>
-#include "surf_routing_generic.hpp"
+#include "surf_routing_RoutedGraph.hpp"
namespace simgrid {
namespace surf {
class XBT_PRIVATE AsFloyd;
/** Floyd routing data: slow initialization, fast lookup, lesser memory requirements, shortest path routing only */
-class AsFloyd: public AsGeneric {
+class AsFloyd: public AsRoutedGraph {
public:
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 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_;
};
}