X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/63ebf4be4ca6a243a64c7ded8df9b96a9d28d3ff..149757f655ffaf7bc403d634de3ef04b72b7a067:/include/simgrid/s4u/Engine.hpp diff --git a/include/simgrid/s4u/Engine.hpp b/include/simgrid/s4u/Engine.hpp index f71fff5dc6..c587b9833e 100644 --- a/include/simgrid/s4u/Engine.hpp +++ b/include/simgrid/s4u/Engine.hpp @@ -75,10 +75,14 @@ public: protected: friend s4u::Host; friend s4u::Storage; - void add_host(std::string name, simgrid::s4u::Host* host); - void del_host(std::string name); - void add_storage(std::string name, simgrid::s4u::Storage* storage); - void del_storage(std::string name); + friend kernel::routing::NetPoint; + friend kernel::routing::NetZoneImpl; + void host_register(std::string name, simgrid::s4u::Host* host); + void host_unregister(std::string name); + void storage_register(std::string name, simgrid::s4u::Storage* storage); + void storage_unregister(std::string name); + void netpoint_register(simgrid::kernel::routing::NetPoint* card); + void netpoint_unregister(simgrid::kernel::routing::NetPoint* card); public: size_t get_host_count(); @@ -114,8 +118,6 @@ public: /** @brief Retrieve the netcard of the given name (or nullptr if not found) */ simgrid::kernel::routing::NetPoint* getNetpointByNameOrNull(std::string name); void getNetpointList(std::vector * list); - void netpointRegister(simgrid::kernel::routing::NetPoint * card); - void netpointUnregister(simgrid::kernel::routing::NetPoint * card); /** Returns whether SimGrid was initialized yet -- mostly for internal use */ static bool isInitialized(); @@ -206,7 +208,10 @@ private: /** Callback fired when the platform is created (ie, the xml file parsed), * right before the actual simulation starts. */ -extern XBT_PUBLIC xbt::signal onPlatformCreated; +extern XBT_PUBLIC xbt::signal on_platform_created; + +/** Callback fired when the platform is about to be created (ie, just before the xml file is parsed) */ +extern XBT_PUBLIC xbt::signal on_platform_creation; /** Callback fired when the main simulation loop ends, just before the end of Engine::run() */ extern XBT_PUBLIC xbt::signal onSimulationEnd;