- for (auto model : *all_existing_models) {
- model->updateActionsState(NOW, time_delta);
- }
- simgrid::s4u::onTimeAdvance(time_delta);
-
- TRACE_paje_dump_buffer (0);
-
- return time_delta;
-}
-
-/*********
- * MODEL *
- *********/
-static surf_action_t ActionListExtract(simgrid::surf::ActionList* list)
-{
- if (list->empty())
- return nullptr;
- surf_action_t res = &list->front();
- list->pop_front();
- return res;
-}
-
-surf_action_t surf_model_extract_done_action_set(surf_model_t model)
-{
- return ActionListExtract(model->getDoneActionSet());
-}
-
-surf_action_t surf_model_extract_failed_action_set(surf_model_t model){
- return ActionListExtract(model->getFailedActionSet());
-}
-
-int surf_model_running_action_set_size(surf_model_t model){
- return model->getRunningActionSet()->size();
-}
-
-surf_action_t surf_host_open(sg_host_t host, const char* fullpath){
- return host->pimpl_->open(fullpath);
-}
-
-surf_action_t surf_host_close(sg_host_t host, surf_file_t fd){
- return host->pimpl_->close(fd);
-}
-
-int surf_host_unlink(sg_host_t host, surf_file_t fd){
- return host->pimpl_->unlink(fd);
-}
-
-size_t surf_host_get_size(sg_host_t host, surf_file_t fd){
- return host->pimpl_->getSize(fd);
-}