#include <simgrid/forward.h>
+#include <simgrid/kernel/resource/Model.hpp>
#include <simgrid/s4u/NetZone.hpp>
#include <string>
NetZone* netzone_by_name_or_null(const std::string& name) const;
+ /**
+ * @brief Add a model to engine list
+ *
+ * @param type Model type (network, disk, etc)
+ * @param model Pointer to model
+ */
+ void add_model(simgrid::kernel::resource::Model::Type type, std::unique_ptr<simgrid::kernel::resource::Model> model);
+
/** @brief Retrieves all netzones of the type indicated by the template argument */
template <class T> std::vector<T*> get_filtered_netzones() const
{
return SIMIX_get_clock();
}
+void Engine::add_model(simgrid::kernel::resource::Model::Type type,
+ std::unique_ptr<simgrid::kernel::resource::Model> model)
+{
+ simgrid::kernel::actor::simcall([this, type, &model] { pimpl->add_model(type, std::move(model)); });
+}
/**
* Creates a new platform, including hosts, links, and the routing table.
*