- workstation->generic_resource.name = xbt_strdup(name);
- workstation->cpu = cpu;
-
- xbt_lib_set(host_lib, name, SURF_WKS_LEVEL, workstation);
-
- return workstation;
-}
-
-void create_workstations(void)
-{
- xbt_lib_cursor_t cursor = NULL;
- char *name = NULL;
- void **cpu = NULL;
+ workstation->generic_resource.name = xbt_strdup(host->id);
+ workstation->cpu = xbt_lib_get_or_null(host_lib, host->id, SURF_CPU_LEVEL);
+ workstation->storage = NULL;