SimGrid
3.21
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 | |
const std::string & | get_name () const |
Retrieves the name of that netzone as a C++ string. More... | |
const char * | get_cname () const |
Retrieves the name of that netzone as a C string. More... | |
NetZone * | get_father () |
std::vector< Host * > | get_all_hosts () |
int | get_host_count () |
kernel::routing::NetZoneImpl * | get_impl () |
std::unordered_map< std::string, std::string > * | get_properties () |
Get the properties assigned to a netzone. More... | |
std::vector< NetZone * > | get_children () |
const char * | get_property (std::string key) |
Retrieve the property value (or nullptr if not set) More... | |
void | set_property (std::string key, std::string value) |
int | add_component (kernel::routing::NetPoint *elm) |
void | add_route (kernel::routing::NetPoint *src, kernel::routing::NetPoint *dst, kernel::routing::NetPoint *gw_src, kernel::routing::NetPoint *gw_dst, std::vector< kernel::resource::LinkImpl *> &link_list, bool symmetrical) |
void | add_bypass_route (kernel::routing::NetPoint *src, kernel::routing::NetPoint *dst, kernel::routing::NetPoint *gw_src, kernel::routing::NetPoint *gw_dst, std::vector< kernel::resource::LinkImpl *> &link_list, bool symmetrical) |
NetZone * | getFather () |
const std::string & | getName () const |
const char * | getCname () const |
void | addRoute (kernel::routing::NetPoint *src, kernel::routing::NetPoint *dst, kernel::routing::NetPoint *gw_src, kernel::routing::NetPoint *gw_dst, std::vector< simgrid::kernel::resource::LinkImpl *> &link_list, bool symmetrical) |
void | addBypassRoute (kernel::routing::NetPoint *src, kernel::routing::NetPoint *dst, kernel::routing::NetPoint *gw_src, kernel::routing::NetPoint *gw_dst, std::vector< simgrid::kernel::resource::LinkImpl *> &link_list, bool symmetrical) |
std::unordered_map< std::string, std::string > * | getProperties () |
const char * | getProperty (const char *key) |
void | setProperty (const char *key, const char *value) |
int | addComponent (kernel::routing::NetPoint *elm) |
std::vector< kernel::routing::NetPoint * > | getVertices () |
int | getHostCount () |
void | getHosts (std::vector< s4u::Host *> *whereto) |
std::vector< NetZone * > * | getChildren () |
Static Public Attributes | |
static simgrid::xbt::signal< void(bool symmetrical, kernel::routing::NetPoint *src, kernel::routing::NetPoint *dst, kernel::routing::NetPoint *gw_src, kernel::routing::NetPoint *gw_dst, std::vector< kernel::resource::LinkImpl * > &link_list)> | on_route_creation |
static simgrid::xbt::signal< void(NetZone &)> | on_creation |
static simgrid::xbt::signal< void(NetZone &)> | on_seal |
Protected Member Functions | |
NetZone (kernel::routing::NetZoneImpl *impl) | |
~NetZone () | |
|
explicitprotected |
|
protected |
const std::string& simgrid::s4u::NetZone::get_name | ( | ) | const |
Retrieves the name of that netzone as a C++ string.
const char* simgrid::s4u::NetZone::get_cname | ( | ) | const |
Retrieves the name of that netzone as a C string.
NetZone* simgrid::s4u::NetZone::get_father | ( | ) |
std::vector<Host*> simgrid::s4u::NetZone::get_all_hosts | ( | ) |
int simgrid::s4u::NetZone::get_host_count | ( | ) |
|
inline |
std::unordered_map<std::string, std::string>* simgrid::s4u::NetZone::get_properties | ( | ) |
Get the properties assigned to a netzone.
std::vector<NetZone*> simgrid::s4u::NetZone::get_children | ( | ) |
const char* simgrid::s4u::NetZone::get_property | ( | std::string | key | ) |
Retrieve the property value (or nullptr if not set)
void simgrid::s4u::NetZone::set_property | ( | std::string | key, |
std::string | value | ||
) |
int simgrid::s4u::NetZone::add_component | ( | kernel::routing::NetPoint * | elm | ) |
void simgrid::s4u::NetZone::add_route | ( | kernel::routing::NetPoint * | src, |
kernel::routing::NetPoint * | dst, | ||
kernel::routing::NetPoint * | gw_src, | ||
kernel::routing::NetPoint * | gw_dst, | ||
std::vector< kernel::resource::LinkImpl *> & | link_list, | ||
bool | symmetrical | ||
) |
void simgrid::s4u::NetZone::add_bypass_route | ( | kernel::routing::NetPoint * | src, |
kernel::routing::NetPoint * | dst, | ||
kernel::routing::NetPoint * | gw_src, | ||
kernel::routing::NetPoint * | gw_dst, | ||
std::vector< kernel::resource::LinkImpl *> & | link_list, | ||
bool | symmetrical | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::vector<kernel::routing::NetPoint*> simgrid::s4u::NetZone::getVertices | ( | ) |
|
inline |
void simgrid::s4u::NetZone::getHosts | ( | std::vector< s4u::Host *> * | whereto | ) |
|
inline |
|
static |
|
static |
|
static |