Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
dd066ff9d5135a78ba7f9f92afbc7836d3406770
[simgrid.git] / src / surf / surf_routing_vivaldi.hpp
1 #include "surf_routing_generic.hpp"
2 #include "network.hpp"
3
4 #ifndef SURF_ROUTING_VIVALDI_HPP_
5 #define SURF_ROUTING_VIVALDI_HPP_
6
7 /***********
8  * Classes *
9  ***********/
10 class AsVivaldi;
11 typedef AsVivaldi *AsVivaldiPtr;
12
13 class AsVivaldi: public AsGeneric {
14 public:
15   sg_platf_route_cbarg_t *p_routingTable;
16
17   AsVivaldi() : AsGeneric() {};
18   ~AsVivaldi() {};
19
20   void getRouteAndLatency(RoutingEdgePtr src, RoutingEdgePtr dst, sg_platf_route_cbarg_t into, double *latency);
21   //void getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges);
22   //sg_platf_route_cbarg_t getBypassRoute(RoutingEdgePtr src, RoutingEdgePtr dst, double *lat);
23
24   /* The parser calls the following functions to inform the routing models
25    * that a new element is added to the AS currently built.
26    *
27    * Of course, only the routing model of this AS is informed, not every ones */
28   int parsePU(RoutingEdgePtr elm); /* A host or a router, whatever */
29   //virtual int parseAS( RoutingEdgePtr elm)=0;
30
31   //virtual void parseBypassroute(sg_platf_route_cbarg_t e_route)=0;
32 };
33
34
35 #endif /* SURF_ROUTING_VIVALDI_HPP_ */