X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bad4812e36b65cbfa8f5d14b56cd7fad34f1792b..b9d349f4e630752232d93f23b5cb3c33e02e0d05:/include/simgrid/s4u/Engine.hpp diff --git a/include/simgrid/s4u/Engine.hpp b/include/simgrid/s4u/Engine.hpp index 89ea5a5042..d24221ccae 100644 --- a/include/simgrid/s4u/Engine.hpp +++ b/include/simgrid/s4u/Engine.hpp @@ -133,16 +133,13 @@ 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::shared_ptr model); - - /** @brief Get list of models created for a resource type */ - const std::vector& get_model_list(simgrid::kernel::resource::Model::Type type); + void add_model(std::shared_ptr model, std::vector&& dep_models = {}); /** @brief Get list of all models managed by this engine */ - const std::vector>& get_all_models() const; + 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