|
SimGrid
3.14.159
Versatile Simulation of Distributed Systems
|
Networking Zones.
A netzone is a network container, in charge of routing information between elements (hosts) and to the nearby netzones. In SimGrid, there is a hierarchy of netzones, with a unique root zone (that you can retrieve from the s4u::Engine).
#include <NetZone.hpp>
Public Member Functions | |
| virtual void | seal () |
| Seal your netzone once you're done adding content, and before routing stuff through it. More... | |
| char * | name () |
| NetZone * | father () |
| xbt_dict_t | children () |
| xbt_dynar_t | hosts () |
| std::unordered_map< std::string, std::string > * | properties () |
| Get the properties assigned to a host. More... | |
| const char * | property (const char *key) |
| Retrieve the property value (or nullptr if not set) More... | |
| void | setProperty (const char *key, const char *value) |
| virtual int | addComponent (kernel::routing::NetCard *elm) |
| virtual void | addRoute (sg_platf_route_cbarg_t route) |
| virtual void | addBypassRoute (sg_platf_route_cbarg_t e_route)=0 |
Static Public Attributes | |
| static simgrid::xbt::signal< void(bool symmetrical, kernel::routing::NetCard *src, kernel::routing::NetCard *dst, kernel::routing::NetCard *gw_src, kernel::routing::NetCard *gw_dst, std::vector< Link * > *link_list)> | onRouteCreation |
Protected Member Functions | |
| NetZone (NetZone *father, const char *name) | |
| virtual | ~NetZone () |
Protected Attributes | |
| std::vector< kernel::routing::NetCard * > | vertices_ |
|
explicitprotected |
|
protectedvirtual |
|
virtual |
Seal your netzone once you're done adding content, and before routing stuff through it.
Reimplemented in simgrid::kernel::routing::FatTreeZone, simgrid::kernel::routing::DragonflyZone, simgrid::kernel::routing::DijkstraZone, simgrid::kernel::routing::FloydZone, and simgrid::kernel::routing::FullZone.
| char * simgrid::s4u::NetZone::name | ( | ) |
| NetZone * simgrid::s4u::NetZone::father | ( | ) |
| xbt_dict_t simgrid::s4u::NetZone::children | ( | ) |
| xbt_dynar_t simgrid::s4u::NetZone::hosts | ( | ) |
| std::unordered_map< std::string, std::string > * simgrid::s4u::NetZone::properties | ( | ) |
Get the properties assigned to a host.
| const char * simgrid::s4u::NetZone::property | ( | const char * | key | ) |
Retrieve the property value (or nullptr if not set)
| void simgrid::s4u::NetZone::setProperty | ( | const char * | key, |
| const char * | value | ||
| ) |
|
virtual |
|
virtual |
|
pure virtual |
Implemented in simgrid::kernel::routing::NetZoneImpl.
|
static |
|
protected |