-
-/*********
- * MODEL *
- *********/
-static simgrid::kernel::resource::Action* ActionListExtract(simgrid::kernel::resource::Action::StateSet* list)
-{
- if (list->empty())
- return nullptr;
- simgrid::kernel::resource::Action* res = &list->front();
- list->pop_front();
- return res;
-}
-
-simgrid::kernel::resource::Action* surf_model_extract_done_action_set(simgrid::kernel::resource::Model* model)
-{
- return ActionListExtract(model->get_done_action_set());
-}
-
-simgrid::kernel::resource::Action* surf_model_extract_failed_action_set(simgrid::kernel::resource::Model* model)
-{
- return ActionListExtract(model->get_failed_action_set());
-}
-
-int surf_model_running_action_set_size(simgrid::kernel::resource::Model* model)
-{
- return model->get_running_action_set()->size();
-}
-
-void surf_cpu_action_set_bound(simgrid::kernel::resource::Action* action, double bound)
-{
- static_cast<simgrid::surf::CpuAction*>(action)->set_bound(bound);
-}