- workstations = SD_workstation_get_list();
- w1 = workstations[0];
- w2 = workstations[1];
- SD_workstation_set_access_mode(w2, SD_WORKSTATION_SEQUENTIAL_ACCESS);
- name1 = SD_workstation_get_name(w1);
- name2 = SD_workstation_get_name(w2);
-
-
- /* The host properties can be retrived from all interfaces */
-
- XBT_INFO("Property list for workstation %s", name1);
- /* Get the property list of the workstation 1 */
- props = SD_workstation_get_properties(w1);
+ h1 = sg_host_by_name("host1");
+ h2 = sg_host_by_name("host2");
+ name1 = sg_host_get_name(h1);
+ name2 = sg_host_get_name(h2);