X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2cff10046c00ef34641f4202364f95173732b483..9b4e5a12b9e11e584c2c5af4d96e38b8220a72b9:/include/simgrid/s4u/Engine.hpp diff --git a/include/simgrid/s4u/Engine.hpp b/include/simgrid/s4u/Engine.hpp index d293c9f5f1..9013733677 100644 --- a/include/simgrid/s4u/Engine.hpp +++ b/include/simgrid/s4u/Engine.hpp @@ -85,6 +85,7 @@ public: protected: #ifndef DOXYGEN + friend surf::HostImpl; friend Host; friend Link; friend Disk; @@ -133,10 +134,14 @@ public: /** * @brief Add a model to engine list * - * @param type Model type (network, disk, etc) * @param model Pointer to model + * @param list List of dependencies for this model (optional) */ - void add_model(simgrid::kernel::resource::Model::Type type, std::unique_ptr model); + void add_model(std::shared_ptr model, + const std::vector& dependencies = {}); + + /** @brief Get list of all models managed by this engine */ + const std::vector& get_all_models() const; /** @brief Retrieves all netzones of the type indicated by the template argument */ template std::vector get_filtered_netzones() const