1 /* Copyright (c) 2013-2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #ifndef SURF_ROUTING_FLOYD_HPP_
9 #define SURF_ROUTING_FLOYD_HPP_
13 #include "surf_routing_generic.hpp"
21 class XBT_PRIVATE AsFloyd;
23 class AsFloyd: public AsGeneric {
28 void getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbarg_t into, double *latency) override;
29 xbt_dynar_t getOneLinkRoutes() override;
30 void parseASroute(sg_platf_route_cbarg_t route) override;
31 void parseRoute(sg_platf_route_cbarg_t route) override;
35 /* vars to compute the Floyd algorithm. */
36 int *p_predecessorTable;
38 sg_platf_route_cbarg_t *p_linkTable;
44 #endif /* SURF_ROUTING_FLOYD_HPP_ */