}
surf_action_t surf_host_sleep(sg_host_t host, double duration){
- return host->extension(simgrid::surf::Cpu::EXTENSION_ID)->sleep(duration);
+ return host->p_cpu->sleep(duration);
}
xbt_dict_t sg_host_get_properties(sg_host_t host) {
}
surf_action_t surf_host_execute(sg_host_t host, double size){
- return host->extension(simgrid::surf::Cpu::EXTENSION_ID)->execute(size);
+ return host->p_cpu->execute(size);
}
double surf_host_get_current_power_peak(sg_host_t host){
return sg_host_surfcpu(cpu)->execute(size);
}
-surf_action_t surf_cpu_sleep(sg_host_t cpu, double duration){
- return sg_host_surfcpu(cpu)->sleep(duration);
+surf_action_t surf_cpu_sleep(sg_host_t host, double duration){
+ return sg_host_surfcpu(host)->sleep(duration);
}
double surf_action_get_start_time(surf_action_t action){
surf_file_t surf_storage_action_get_file(surf_action_t action){
return static_cast<simgrid::surf::StorageAction*>(action)->p_file;
}
+
+surf_host_t surf_host_resource_priv(sg_host_t host) {
+ return host->extension(simgrid::surf::Host::EXTENSION_ID);
+}