Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace surf by surf++ and make it compile
[simgrid.git] / src / surf / surf_routing_none.hpp
1 #include "surf_routing.hpp"
2
3 #ifndef SURF_ROUTING_NONE_HPP_
4 #define SURF_ROUTING_NONE_HPP_
5
6 class AsNone : public As {
7 public:
8   AsNone();
9   ~AsNone();
10   void getRouteAndLatency(RoutingEdgePtr src, RoutingEdgePtr dst, sg_platf_route_cbarg_t into, double *latency);
11   xbt_dynar_t getOneLinkRoutes();
12   void getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges);
13   sg_platf_route_cbarg_t getBypassRoute(RoutingEdgePtr src, RoutingEdgePtr dst, double *lat);
14   void finalize();
15
16   /* The parser calls the following functions to inform the routing models
17    * that a new element is added to the AS currently built.
18    *
19    * Of course, only the routing model of this AS is informed, not every ones */
20   int parsePU(RoutingEdgePtr elm); /* A host or a router, whatever */
21   int parseAS( RoutingEdgePtr elm);
22   void parseRoute(sg_platf_route_cbarg_t route);
23   void parseASroute(sg_platf_route_cbarg_t route);
24   void parseBypassroute(sg_platf_route_cbarg_t e_route);
25 };
26
27
28 #endif /* SURF_ROUTING_NONE_HPP_ */