Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix simdag issue
[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 parseRoute(sg_platf_route_cbarg_t route);
21   void end();
22   //void parseASroute(sg_platf_route_cbarg_t route);
23
24   //void getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges);
25   //sg_platf_route_cbarg_t getBypassRoute(RoutingEdgePtr src, RoutingEdgePtr dst, double *lat);
26
27   /* The parser calls the following functions to inform the routing models
28    * that a new element is added to the AS currently built.
29    *
30    * Of course, only the routing model of this AS is informed, not every ones */
31   //int parsePU(RoutingEdgePtr elm); /* A host or a router, whatever */
32   //int parseAS(RoutingEdgePtr elm);
33
34   //virtual void parseBypassroute(sg_platf_route_cbarg_t e_route)=0;
35
36   /* vars for calculate the floyd algorith. */
37   int *p_predecessorTable;
38   double *p_costTable;
39   sg_platf_route_cbarg_t *p_linkTable;
40 };
41
42
43
44 #endif /* SURF_ROUTING_FLOYD_HPP_ */