1 #include "surf_routing_generic.hpp"
3 #ifndef SURF_ROUTING_FULL_HPP_
4 #define SURF_ROUTING_FULL_HPP_
10 typedef AsFull *AsFullPtr;
12 class AsFull: public AsGeneric {
14 sg_platf_route_cbarg_t *p_routingTable;
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);
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);
27 /* The parser calls the following functions to inform the routing models
28 * that a new element is added to the AS currently built.
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;
34 //virtual void parseBypassroute(sg_platf_route_cbarg_t e_route)=0;
38 #endif /* SURF_ROUTING_FULL_HPP_ */