* under the terms of the license (GNU LGPL) which comes with this package. */
#include "instr/instr_interface.h"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "instr/instr_interface.h"
Engine::Engine(int *argc, char **argv) {
xbt_assert(s4u::Engine::instance_ == nullptr, "It is currently forbidden to create more than one instance of s4u::Engine");
s4u::Engine::instance_ = this;
Engine::Engine(int *argc, char **argv) {
xbt_assert(s4u::Engine::instance_ == nullptr, "It is currently forbidden to create more than one instance of s4u::Engine");
s4u::Engine::instance_ = this;
TRACE_global_init(argc, argv);
SIMIX_global_init(argc, argv);
}
TRACE_global_init(argc, argv);
SIMIX_global_init(argc, argv);
}
{
if(!strcmp(current->name(), name))
return current;
xbt_dict_cursor_t cursor = nullptr;
char *key;
{
if(!strcmp(current->name(), name))
return current;
xbt_dict_cursor_t cursor = nullptr;
char *key;
xbt_dict_foreach(current->children(), cursor, key, elem) {
xbt_dict_foreach(current->children(), cursor, key, elem) {
-/** @brief Retrieve the AS of the given name (or nullptr if not found) */
-As *Engine::asByNameOrNull(const char *name) {
- return asByNameRecursive(rootAs(),name);
+/** @brief Retrieve the NetZone of the given name (or nullptr if not found) */
+NetZone* Engine::netzoneByNameOrNull(const char* name)
+{
+ return netzoneByNameRecursive(netRoot(), name);