Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
No more types for models.
authorBruno Donassolo <bruno.donassolo@inria.fr>
Tue, 23 Mar 2021 18:04:35 +0000 (19:04 +0100)
committerBruno Donassolo <bruno.donassolo@inria.fr>
Tue, 23 Mar 2021 18:47:37 +0000 (19:47 +0100)
commitb9d349f4e630752232d93f23b5cb3c33e02e0d05
tree36992a9de5cbe243d263d83e1bb6d886f34f44b4
parentbad4812e36b65cbfa8f5d14b56cd7fad34f1792b
No more types for models.

Remove the concept of type for a model (CPU, VM, NETWORK, etc).
Explicitly declare the dependencies between models when adding them to
the engine.

Internally, they are organized in a ordered list, respecting the
dependencies described by the user.

Changes in APIs:
s4u_Engine.hpp:
- Delete get_model_list(simgrid::kernel::resource::Model::Type type)
- Modify add_model(std::shared_ptr<simgrid::kernel::resource::Model> model, std::vector<std::string>&& dep_models = {}): added list of dependencies

Model.hpp:
- set_name(), get_name(): add methods to associate a name to the model
20 files changed:
include/simgrid/kernel/resource/Model.hpp
include/simgrid/s4u/Engine.hpp
src/kernel/EngineImpl.cpp
src/kernel/EngineImpl.hpp
src/kernel/resource/Model.cpp
src/plugins/vm/VirtualMachineImpl.cpp
src/s4u/s4u_Engine.cpp
src/surf/cpu_cas01.cpp
src/surf/cpu_ti.cpp
src/surf/disk_s19.cpp
src/surf/host_clm03.cpp
src/surf/network_cm02.cpp
src/surf/network_constant.cpp
src/surf/network_ib.cpp
src/surf/network_ns3.cpp
src/surf/network_smpi.cpp
src/surf/ptask_L07.cpp
src/surf/sg_platf.cpp
src/surf/surf_c_bindings.cpp
src/surf/surf_interface.hpp