return cpu;
}
-double CpuTiModel::shareResources(double now)
+double CpuTiModel::next_occuring_event(double now)
{
double min_action_duration = -1;
}
}
-void CpuTi::updateState(tmgr_trace_iterator_t event_type,
- double value, double date)
+void CpuTi::apply_event(tmgr_trace_iterator_t event_type, double value)
{
CpuTiAction *action;
CpuTiTgmr *trace;
s_tmgr_event_t val;
- XBT_DEBUG("Finish trace date: %f value %f date %f", surf_get_clock(),
- value, date);
+ XBT_DEBUG("Finish trace date: value %f", value);
/* update remaining of actions and put in modified cpu swag */
- updateRemainingAmount(date);
+ updateRemainingAmount(surf_get_clock());
modified(true);
turnOn();
} else {
turnOff();
+ double date = surf_get_clock();
/* put all action running on cpu to failed */
for(ActionTiList::iterator it(p_actionSet->begin()), itend(p_actionSet->end())