X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7ef49c428ab0209965a09a36ab28b59789aaa4b5..509ed39fb4a45e2d53f855613a3639000b278f62:/include/simgrid/s4u/Engine.hpp diff --git a/include/simgrid/s4u/Engine.hpp b/include/simgrid/s4u/Engine.hpp index feef402dcb..4b39af125d 100644 --- a/include/simgrid/s4u/Engine.hpp +++ b/include/simgrid/s4u/Engine.hpp @@ -58,6 +58,8 @@ public: size_t getHostCount(); void getHostList(std::vector * whereTo); + size_t getLinkCount(); + void getLinkList(std::vector * list); /** @brief Run the simulation */ void run(); @@ -75,7 +77,7 @@ public: simgrid::s4u::NetZone* getNetzoneByNameOrNull(const char* name); /** @brief Retrieve the netcard of the given name (or nullptr if not found) */ - simgrid::kernel::routing::NetPoint* getNetpointByNameOrNull(const char* name); + 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); @@ -100,6 +102,15 @@ public: /** Returns whether SimGrid was initialized yet -- mostly for internal use */ static bool isInitialized(); + /** @brief set a configuration variable + * + * Do --help on any simgrid binary to see the list of currently existing configuration variables (see @ref options). + * + * Example: + * e->setConfig("host/model","ptask_L07"); + */ + void setConfig(std::string str); + simgrid::kernel::EngineImpl* pimpl; private: @@ -115,6 +126,9 @@ extern XBT_PRIVATE xbt::signal onSimulationEnd; /** Callback fired when the time jumps into the future */ extern XBT_PRIVATE xbt::signal onTimeAdvance; + +/** Callback fired when the time cannot jump because of inter-actors deadlock */ +extern XBT_PRIVATE xbt::signal onDeadlock; } } // namespace simgrid::s4u