SimGrid  3.12
Versatile Simulation of Distributed Systems
RoutingPlatf Class Reference

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...
 

Detailed Description

The class representing a whole routing platform.

Member Function Documentation

void RoutingPlatf::getRouteAndLatency ( RoutingEdge src,
RoutingEdge dst,
xbt_dynar_t route,
double *  latency 
)

Find a route between hosts.

Parameters
srcthe network_element_t for src host
dstthe network_element_t for dst host
routewhere to store the list of links. If *route=NULL, create a short lived dynar. Else, fill the provided dynar
latencywhere 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)
Precondition
route!=NULL

walk through the routing components tree and find a route between hosts by calling the differents "get_route" functions in each routing component.


The documentation for this class was generated from the following files: