return model->getRunningActionSet()->size();
}
-void surf_vm_model_create(const char *name, sg_host_t ind_phys_host){
- surf_vm_model->createVM(name, ind_phys_host);
-}
-
surf_action_t surf_network_model_communicate(surf_network_model_t model, sg_host_t src, sg_host_t dst, double size, double rate){
return model->communicate(src->pimpl_netcard, dst->pimpl_netcard, size, rate);
}
return get_casted_host(host)->fileMove(fd, fullpath);
}
-void surf_vm_destroy(sg_host_t vm){ // FIXME:DEADCODE
- vm->pimpl_cpu = nullptr;
- vm->pimpl_netcard = nullptr;
-}
-
void surf_vm_suspend(sg_host_t vm){
get_casted_vm(vm)->suspend();
}
}
const char* surf_storage_get_host(surf_resource_t resource){
- return static_cast<simgrid::surf::Storage*>(surf_storage_resource_priv(resource))->p_attach;
+ return static_cast<simgrid::surf::Storage*>(surf_storage_resource_priv(resource))->attach_;
}
void surf_cpu_action_set_bound(surf_action_t action, double bound) {