static int resource_used(void *resource_id)
{
THROW_IMPOSSIBLE; /* This model does not implement parallel tasks */
- return 0;
}
static void parallel_action_cancel(surf_action_t action)
static int parallel_action_free(surf_action_t action)
{
THROW_UNIMPLEMENTED; /* This model does not implement parallel tasks */
- return 0;
}
static void parallel_action_use(surf_action_t action)
double value)
{
THROW_IMPOSSIBLE; /* This model does not implement parallel tasks */
- return;
}
static surf_action_t execute(void *workstation, double size)
get_available_speed(((workstation_CLM03_t) workstation)->cpu);
}
+static xbt_dict_t get_properties(void *workstation)
+{
+ return surf_cpu_model->common_public->
+ get_properties(((workstation_CLM03_t) workstation)->cpu);
+}
+
static surf_action_t execute_parallel_task(int workstation_nb,
void **workstation_list,
double *computation_amount,
double rate)
{
THROW_UNIMPLEMENTED; /* This model does not implement parallel tasks */
- return NULL;
}
surf_workstation_model->extension_public->get_speed = get_speed;
surf_workstation_model->extension_public->get_available_speed =
get_available_speed;
+
+ /*manage the properties of the workstation*/
+ surf_workstation_model->common_public->get_properties = get_properties;
+
surf_workstation_model->extension_public->communicate = communicate;
surf_workstation_model->extension_public->execute_parallel_task =
execute_parallel_task;