- char *link_name = nullptr;
- unsigned int i;
- xbt_dynar_foreach (links_to_create, i, link_name){
-
- container_t container = PJ_container_new (link_name, INSTR_LINK, father);
-
- if ((TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) && (! TRACE_disable_link())) {
- type_t bandwidth = PJ_type_get_or_null ("bandwidth", container->type);
- if (bandwidth == nullptr){
- bandwidth = PJ_type_variable_new ("bandwidth", nullptr, container->type);
- }
- type_t latency = PJ_type_get_or_null ("latency", container->type);
- if (latency == nullptr){
- latency = PJ_type_variable_new ("latency", nullptr, container->type);
- }
- new_pajeSetVariable (0, container, bandwidth, bandwidth_value);
- new_pajeSetVariable (0, container, latency, latency_value);
- }
- if (TRACE_uncategorized()){
- type_t bandwidth_used = PJ_type_get_or_null ("bandwidth_used", container->type);
- if (bandwidth_used == nullptr){
- PJ_type_variable_new ("bandwidth_used", "0.5 0.5 0.5", container->type);
- }
- }
- }