The class representing a whole routing platform.
More...
#include <surf_routing.hpp>
The class representing a whole routing platform.
simgrid::surf::RoutingPlatf::RoutingPlatf |
( |
Link * |
loopback | ) |
|
simgrid::surf::RoutingPlatf::~RoutingPlatf |
( |
| ) |
|
void simgrid::surf::RoutingPlatf::getRouteAndLatency |
( |
NetCard * |
src, |
|
|
NetCard * |
dst, |
|
|
std::vector< Link * > * |
route, |
|
|
double * |
latency |
|
) |
| |
Find a route between hosts.
- Parameters
-
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) |
- Precondition
- route!=NULL
walk through the routing components tree and find a route between hosts by calling each "get_route" function in each routing component.
AsImpl* simgrid::surf::RoutingPlatf::root_ = nullptr |
Link* simgrid::surf::RoutingPlatf::loopback_ |
The documentation for this class was generated from the following files: