SimGrid
3.12
Versatile Simulation of Distributed Systems
|
The class representing a whole routing platform. More...
#include <surf_routing.hpp>
Public Member Functions | |
void | getRouteAndLatency (RoutingEdge *src, RoutingEdge *dst, xbt_dynar_t *links, double *latency) |
Find a route between hosts. More... | |
The class representing a whole routing platform.
void RoutingPlatf::getRouteAndLatency | ( | RoutingEdge * | src, |
RoutingEdge * | dst, | ||
xbt_dynar_t * | route, | ||
double * | latency | ||
) |
Find a route between hosts.
src | the network_element_t for src host |
dst | the network_element_t for dst host |
route | where to store the list of links. If *route=NULL, create a short lived dynar. Else, fill the provided dynar |
latency | where to store the latency experienced on the path (or NULL if not interested) It is the caller responsability to initialize latency to 0 (we add to provided route) |
walk through the routing components tree and find a route between hosts by calling the differents "get_route" functions in each routing component.