Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix memleak
[simgrid.git] / src / surf / surf_routing_floyd.hpp
1 #include "surf_routing_generic.hpp"
2
3 #ifndef SURF_ROUTING_FLOYD_HPP_
4 #define SURF_ROUTING_FLOYD_HPP_
5
6
7 /***********
8  * Classes *
9  ***********/
10 class AsFloyd;
11 typedef AsFloyd *AsFloydPtr;
12
13 class AsFloyd: public AsGeneric {
14 public:
15   AsFloyd();
16   ~AsFloyd();
17
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);
22   void end();
23   //void parseASroute(sg_platf_route_cbarg_t route);
24
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);
27
28   /* The parser calls the following functions to inform the routing models
29    * that a new element is added to the AS currently built.
30    *
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);
34
35   //virtual void parseBypassroute(sg_platf_route_cbarg_t e_route)=0;
36
37   /* vars for calculate the floyd algorith. */
38   int *p_predecessorTable;
39   double *p_costTable;
40   sg_platf_route_cbarg_t *p_linkTable;
41 };
42
43
44
45 #endif /* SURF_ROUTING_FLOYD_HPP_ */