- stateActionA = surf_cpu_resource->common_public->action_get_state(actionA); /* When you know actionA resource type */
- stateActionB = actionB->resource_type->common_public->action_get_state(actionB); /* If you're unsure about it's resource type */
+ stateActionA = surf_cpu_model->action_state_get(actionA); /* When you know actionA model type */
+ stateActionB = actionB->model_type->action_state_get(actionB); /* If you're unsure about it's model type */
+ stateActionC = surf_cpu_model->action_state_get(actionC); /* When you know actionA model type */
+
+ /* And just look at the state of these tasks */
+ XBT_DEBUG("actionA : %p (%s)", actionA, string_action(stateActionA));
+ XBT_DEBUG("actionB : %p (%s)", actionB, string_action(stateActionB));
+ XBT_DEBUG("actionC : %p (%s)", actionB, string_action(stateActionC));
+
+ /*********************** Network *******************************/
+ XBT_DEBUG("%p", surf_network_model);
+ cardA = surf_network_resource_by_name("Cpu A");
+ cardB = surf_network_resource_by_name("Cpu B");
+
+ /* Let's check that those two processors exist */
+ XBT_DEBUG("%s : %p", surf_resource_name(cardA), cardA);
+ XBT_DEBUG("%s : %p", surf_resource_name(cardB), cardB);