Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill surf_cpu_model_init_bypass_im, use surf_host_create_resource, change the manner...
[simgrid.git] / src / surf / surfxml_parse.c
index 7ff2efa..88fad91 100644 (file)
@@ -269,6 +269,7 @@ void ETag_surfxml_platform(void)
 void STag_surfxml_host(void)
 {
   surfxml_call_cb_functions(STag_surfxml_host_cb_list);
+
 }
 
 void ETag_surfxml_host(void)
@@ -697,6 +698,7 @@ static void parse_sets(void)
 }
 
 static void parse_host_foreach(void){
+
   xbt_dynar_t names = NULL;
   unsigned int cpt = 0;
   char *name;
@@ -1164,3 +1166,24 @@ static void add_randomness(void)
                random_std_deviation);
   xbt_dict_set(random_data_list, random_id, (void *) random, NULL);
 }
+
+void surf_host_create_resource(char *name, double power_peak,
+        double power_scale,
+        tmgr_trace_t power_trace,
+        e_surf_resource_state_t state_initial,
+        tmgr_trace_t state_trace,
+        xbt_dict_t cpu_properties)
+{
+       return surf_cpu_model->extension.cpu.
+               create_resource(name,power_peak,power_scale,power_trace,state_initial,state_trace,cpu_properties);
+}
+
+
+void surf_link_create_resouce(char *name,
+        double bw_initial,
+        double lat_initial)
+{
+       return surf_network_model->extension.network.
+            create_resource(name,bw_initial,lat_initial);
+
+}