Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
No vm when ptask on
[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   virtual void getRouteAndLatency(RoutingEdgePtr src, RoutingEdgePtr dst, sg_platf_route_cbarg_t into, double *latency);
11   virtual xbt_dynar_t getOneLinkRoutes();
12   virtual void getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges);
13   virtual sg_platf_route_cbarg_t getBypassRoute(RoutingEdgePtr src, RoutingEdgePtr dst, double *lat);
14
15   /* The parser calls the following functions to inform the routing models
16    * that a new element is added to the AS currently built.
17    *
18    * Of course, only the routing model of this AS is informed, not every ones */
19   virtual int parsePU(RoutingEdgePtr elm); /* A host or a router, whatever */
20   virtual int parseAS( RoutingEdgePtr elm);
21   virtual void parseRoute(sg_platf_route_cbarg_t route);
22   virtual void parseASroute(sg_platf_route_cbarg_t route);
23   virtual void parseBypassroute(sg_platf_route_cbarg_t e_route);
24 };
25
26
27 #endif /* SURF_ROUTING_NONE_HPP_ */