static void display_storage_content(simgrid::s4u::Storage* storage)
{
XBT_INFO("Print the content of the storage element: %s", storage->get_cname());
- std::map<std::string, sg_size_t>* content = storage->extension<simgrid::s4u::FileSystemStorageExt>()->getContent();
+ std::map<std::string, sg_size_t>* content = storage->extension<simgrid::s4u::FileSystemStorageExt>()->get_content();
if (not content->empty()) {
for (auto const& entry : *content)
XBT_INFO("\t%s size: %llu bytes", entry.first.c_str(), entry.second);
static void dump_platform_storages()
{
- std::vector<simgrid::s4u::Storage*> storages = simgrid::s4u::Engine::getInstance()->getAllStorages();
+ std::vector<simgrid::s4u::Storage*> storages = simgrid::s4u::Engine::get_instance()->get_all_storages();
for (auto const& s : storages) {
XBT_INFO("Storage %s is attached to %s", s->get_cname(), s->getHost()->get_cname());
e.run();
- XBT_INFO("Simulated time: %g", e.getClock());
+ XBT_INFO("Simulated time: %g", e.get_clock());
return 0;
}