Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge commit '045db1657e870c721be490b411868f4181a12ced' into surf++
[simgrid.git] / src / surf / surf_routing_full.hpp
1 #include "surf_routing_generic.hpp"
2
3 #ifndef SURF_ROUTING_FULL_HPP_
4 #define SURF_ROUTING_FULL_HPP_
5
6 /***********
7  * Classes *
8  ***********/
9 class AsFull;
10 typedef AsFull *AsFullPtr;
11
12 class AsFull: public AsGeneric {
13 public:
14   sg_platf_route_cbarg_t *p_routingTable;
15
16   AsFull();
17   ~AsFull();
18
19   void getRouteAndLatency(RoutingEdgePtr src, RoutingEdgePtr dst, sg_platf_route_cbarg_t into, double *latency);
20   xbt_dynar_t getOneLinkRoutes();
21   void parseRoute(sg_platf_route_cbarg_t route);
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   //virtual int parsePU(RoutingEdgePtr elm)=0; /* A host or a router, whatever */
32   //virtual int parseAS( RoutingEdgePtr elm)=0;
33
34   //virtual void parseBypassroute(sg_platf_route_cbarg_t e_route)=0;
35 };
36
37
38 #endif /* SURF_ROUTING_FULL_HPP_ */