1 #include "surf_routing_none.hpp"
4 #ifndef SURF_ROUTING_CLUSTER_HPP_
5 #define SURF_ROUTING_CLUSTER_HPP_
11 typedef AsCluster *AsClusterPtr;
14 /* ************************************************** */
15 /* ************** Cluster ROUTING **************** */
17 class AsCluster: public AsNone {
21 void getRouteAndLatency(RoutingEdgePtr src, RoutingEdgePtr dst, sg_platf_route_cbarg_t into, double *latency);
22 //xbt_dynar_t getOneLinkRoutes();
23 //void parseRoute(sg_platf_route_cbarg_t route);
24 //void parseASroute(sg_platf_route_cbarg_t route);
26 void getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges);
27 //sg_platf_route_cbarg_t getBypassRoute(RoutingEdgePtr src, RoutingEdgePtr dst, double *lat);
29 /* The parser calls the following functions to inform the routing models
30 * that a new element is added to the AS currently built.
32 * Of course, only the routing model of this AS is informed, not every ones */
33 int parsePU(RoutingEdgePtr elm); /* A host or a router, whatever */
34 int parseAS(RoutingEdgePtr elm);
36 //virtual void parseBypassroute(sg_platf_route_cbarg_t e_route)=0;
38 NetworkCm02LinkPtr p_backbone;
40 RoutingEdgePtr p_router;
44 #endif /* SURF_ROUTING_CLUSTER_HPP_ */