+ container_t father = xbt_dynar_get_ptr(currentContainer, xbt_dynar_length(currentContainer)-1);
+ char type[INSTR_DEFAULT_STR_SIZE];
+ snprintf (type, INSTR_DEFAULT_STR_SIZE, "LINK-%s", father->type);
+ container_t new = newContainer (A_surfxml_link_id, type, "LINK");
+
+ //bandwidth and latency
+ char bandwidth_type[INSTR_DEFAULT_STR_SIZE], latency_type[INSTR_DEFAULT_STR_SIZE];
+ snprintf (bandwidth_type, INSTR_DEFAULT_STR_SIZE, "bandwidth-%s", type);
+ snprintf (latency_type, INSTR_DEFAULT_STR_SIZE, "latency-%s", type);
+ newVariableType (bandwidth_type, type, "bandwidth", NULL);
+ newVariableType (latency_type, type, "latency", NULL);
+ pajeSetVariable(0, bandwidth_type, new->name, A_surfxml_link_bandwidth);
+ pajeSetVariable(0, latency_type, new->name, A_surfxml_link_latency);
+
+ if (TRACE_uncategorized()){
+ //bandwidth_used
+ char bandwidth_used_type[INSTR_DEFAULT_STR_SIZE];
+ snprintf (bandwidth_used_type, INSTR_DEFAULT_STR_SIZE, "bandwidth_used-%s", type);
+ newVariableType (bandwidth_used_type, type, "bandwidth_used", "0.5 0.5 0.5");
+ }
+
+ //register created link on the dictionary
+ xbt_dict_set (created_links, A_surfxml_link_id, new, NULL);
+
+ //register this link type
+ xbt_dict_set (links_types, type, xbt_strdup("1"), xbt_free);