+static network_link_KCCFLN05_t loopback = NULL;
+static xbt_dict_t parallel_task_network_link_set = NULL;
+
+/*xbt_dict_t network_link_set = NULL;*/
+
+/* convenient function */
+static void __update_cpu_usage(cpu_KCCFLN05_t cpu)
+{
+ int cpt;
+ surf_action_workstation_KCCFLN05_t action = NULL;
+ if ((!xbt_dynar_length(cpu->incomming_communications)) &&
+ (!xbt_dynar_length(cpu->outgoing_communications))) {
+ /* No communications */
+ lmm_update_constraint_bound(maxmin_system, cpu->constraint,
+ cpu->power_current * cpu->power_scale);
+ } else if ((!xbt_dynar_length(cpu->incomming_communications))
+ && (xbt_dynar_length(cpu->outgoing_communications))) {
+ /* Emission */
+ lmm_update_constraint_bound(maxmin_system, cpu->constraint,
+ cpu->power_current * cpu->power_scale *
+ cpu->interference_send);
+ xbt_dynar_foreach(cpu->outgoing_communications, cpt, action)
+ lmm_elem_set_value(maxmin_system,cpu->constraint,action->variable,
+ cpu->power_current * cpu->power_scale *
+ ROUTE(action->src->id, action->dst->id).impact_on_src
+ );
+ } else if ((xbt_dynar_length(cpu->incomming_communications)) &&
+ (!xbt_dynar_length(cpu->outgoing_communications))) {
+ /* Reception */
+ lmm_update_constraint_bound(maxmin_system, cpu->constraint,
+ cpu->power_current * cpu->power_scale *
+ cpu->interference_recv);
+ xbt_dynar_foreach(cpu->incomming_communications, cpt, action)
+ lmm_elem_set_value(maxmin_system,cpu->constraint,action->variable,
+ cpu->power_current * cpu->power_scale *
+ ROUTE(action->src->id, action->dst->id).impact_on_dst
+ );
+ } else {
+ /* Emission & Reception */
+ lmm_update_constraint_bound(maxmin_system, cpu->constraint,
+ cpu->power_current * cpu->power_scale *
+ cpu->interference_send_recv);
+ xbt_dynar_foreach(cpu->outgoing_communications, cpt, action)
+ lmm_elem_set_value(maxmin_system,cpu->constraint,action->variable,
+ cpu->power_current * cpu->power_scale *
+ ROUTE(action->src->id, action->dst->id).impact_on_src_with_other_recv
+ );
+ xbt_dynar_foreach(cpu->incomming_communications, cpt, action)
+ lmm_elem_set_value(maxmin_system,cpu->constraint,action->variable,
+ cpu->power_current * cpu->power_scale *
+ ROUTE(action->src->id, action->dst->id).impact_on_dst_with_other_send
+ );
+ }
+}