- action, host_nb, nb_link);
- action->m_suspended = 0; /* Should be useless because of the
- calloc but it seems to help valgrind... */
- action->m_hostNb = host_nb;
- action->p_hostList = (HostPtr *) host_list;
- action->p_computationAmount = flops_amount;
- action->p_communicationAmount = bytes_amount;
- action->m_latency = latency;
- action->m_rate = rate;
-
- action->p_variable = lmm_variable_new(ptask_maxmin_system, action, 1.0,
- (action->m_rate > 0) ? action->m_rate : -1.0,
- host_nb + nb_link);
-
- if (action->m_latency > 0)
- lmm_update_variable_weight(ptask_maxmin_system, action->getVariable(), 0.0);
-
- for (i = 0; i < host_nb; i++)
- lmm_expand(ptask_maxmin_system,
- static_cast<HostL07Ptr>(host_list[i])->p_cpu->getConstraint(),
- action->getVariable(), flops_amount[i]);
-
- for (i = 0; i < host_nb; i++) {
- for (j = 0; j < host_nb; j++) {
+ this, host_nb, nb_link);
+ this->p_computationAmount = flops_amount;
+ this->p_communicationAmount = bytes_amount;
+ this->m_latency = latency;
+ this->m_rate = rate;
+
+ this->p_variable = lmm_variable_new(model->getMaxminSystem(), this, 1.0,
+ (rate > 0 ? rate : -1.0),
+ host_nb + nb_link);
+
+ if (this->m_latency > 0)
+ lmm_update_variable_weight(model->getMaxminSystem(), this->getVariable(), 0.0);
+
+ for (int i = 0; i < host_nb; i++)
+ lmm_expand(model->getMaxminSystem(),
+ host_list[i]->p_cpu->getConstraint(),
+ this->getVariable(), flops_amount[i]);
+
+ for (int i = 0; i < host_nb; i++) {
+ for (int j = 0; j < host_nb; j++) {