From 922fa4ad065ee6bdd206735ff8c0f8e13964be8c Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Wed, 27 May 2015 19:24:27 +0200 Subject: [PATCH] [SURF] Added simple method comment for AsDijkstra::addLoopback() --- src/surf/surf_routing_dijkstra.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/surf/surf_routing_dijkstra.hpp b/src/surf/surf_routing_dijkstra.hpp index 7299cb7fde..033e4f9aaa 100644 --- a/src/surf/surf_routing_dijkstra.hpp +++ b/src/surf/surf_routing_dijkstra.hpp @@ -37,6 +37,18 @@ public: xbt_node_t routeGraphNewNode(int id, int graph_id); graph_node_map_element_t nodeMapSearch(int id); void newRoute(int src_id, int dst_id, sg_platf_route_cbarg_t e_route); + /** + * For each vertex (node) already in the graph, + * make sure it also has a loopback link; this loopback + * can potentially already be in the graph, and in that + * case nothing will be done. + * + * If no loopback is specified for a node, we will use + * the loopback that is provided by the routing platform. + * + * After this function returns, any node in the graph + * will have a loopback attached to it. + */ void addLoopback(); void getRouteAndLatency(RoutingEdgePtr src, RoutingEdgePtr dst, sg_platf_route_cbarg_t route, double *lat); xbt_dynar_t getOnelinkRoutes(); -- 2.20.1