1 #include "surf_routing_generic.hpp"
4 #ifndef SURF_ROUTING_VIVALDI_HPP_
5 #define SURF_ROUTING_VIVALDI_HPP_
11 typedef AsVivaldi *AsVivaldiPtr;
13 class AsVivaldi: public AsGeneric {
15 sg_platf_route_cbarg_t *p_routingTable;
17 AsVivaldi() : AsGeneric() {};
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);
24 /* The parser calls the following functions to inform the routing models
25 * that a new element is added to the AS currently built.
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;
31 //virtual void parseBypassroute(sg_platf_route_cbarg_t e_route)=0;
35 #endif /* SURF_ROUTING_VIVALDI_HPP_ */