- XBT_IN("(%s,%g)", m_name, size);
- CpuTiActionPtr action = new CpuTiAction((CpuTiModelPtr) p_model, size, p_stateCurrent != SURF_RESOURCE_ON);
-
- action->p_cpu = this;
- action->m_indexHeap = -1;
-
- xbt_swag_insert(this, cpu_ti_modified_cpu);
-
- xbt_swag_insert(action, p_actionSet);
+ XBT_IN("(%s,%g)", getName(), size);
+ CpuTiAction *action = new CpuTiAction(static_cast<CpuTiModel*>(getModel()), size, getState() != SURF_RESOURCE_ON, this);