X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..a9786d0c1612118b9fc2304ea7aa36b67b232267:/include/simgrid/s4u/engine.hpp diff --git a/include/simgrid/s4u/engine.hpp b/include/simgrid/s4u/engine.hpp index dc982073d1..62b41648c8 100644 --- a/include/simgrid/s4u/engine.hpp +++ b/include/simgrid/s4u/engine.hpp @@ -18,12 +18,18 @@ #include namespace simgrid { +namespace kernel { +class EngineImpl; +} namespace s4u { /** @brief Simulation engine * * This class is an interface to the simulation engine. */ XBT_PUBLIC_CLASS Engine { +private: + ~Engine(); + public: /** Constructor, taking the command line parameters of your main function */ Engine(int *argc, char **argv); @@ -60,10 +66,15 @@ public: /** @brief Retrieve the engine singleton */ static s4u::Engine *instance(); - /** @brief Retrieve the root AS, containing all others */ - simgrid::s4u::As *rootAs(); - /** @brief Retrieve the AS of the given name (or nullptr if not found) */ - simgrid::s4u::As *asByNameOrNull(const char *name); + /** @brief Retrieve the root netzone, containing all others */ + simgrid::s4u::NetZone* netRoot(); + + /** @brief Retrieve the netzone of the given name (or nullptr if not found) */ + simgrid::s4u::NetZone* netzoneByNameOrNull(const char* name); + + /** @brief Retrieve the netcard of the given name (or nullptr if not found) */ + simgrid::kernel::routing::NetCard* netcardByNameOrNull(const char* name); + void netcardList(std::vector * list); template void registerFunction(const char* name) @@ -86,6 +97,8 @@ public: }); } + simgrid::kernel::EngineImpl* pimpl; + private: static s4u::Engine *instance_; };