1 #include "surf_routing_generic.hpp"
3 #ifndef SURF_ROUTING_FLOYD_HPP_
4 #define SURF_ROUTING_FLOYD_HPP_
11 typedef AsFloyd *AsFloydPtr;
13 class AsFloyd: public AsGeneric {
18 void getRouteAndLatency(RoutingEdgePtr src, RoutingEdgePtr dst, sg_platf_route_cbarg_t into, double *latency);
19 xbt_dynar_t getOneLinkRoutes();
20 void parseASroute(sg_platf_route_cbarg_t route);
21 void parseRoute(sg_platf_route_cbarg_t route);
23 //void parseASroute(sg_platf_route_cbarg_t route);
25 //void getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges);
26 //sg_platf_route_cbarg_t getBypassRoute(RoutingEdgePtr src, RoutingEdgePtr dst, double *lat);
28 /* The parser calls the following functions to inform the routing models
29 * that a new element is added to the AS currently built.
31 * Of course, only the routing model of this AS is informed, not every ones */
32 //int parsePU(RoutingEdgePtr elm); /* A host or a router, whatever */
33 //int parseAS(RoutingEdgePtr elm);
35 //virtual void parseBypassroute(sg_platf_route_cbarg_t e_route)=0;
37 /* vars for calculate the floyd algorith. */
38 int *p_predecessorTable;
40 sg_platf_route_cbarg_t *p_linkTable;
45 #endif /* SURF_ROUTING_FLOYD_HPP_ */