HostL07Model::HostL07Model() : HostModel() {
maxminSystem_ = lmm_system_new(1);
+ maxminSystem_->solve_fun = &bottleneck_solve;
surf_network_model = new NetworkL07Model(this,maxminSystem_);
surf_cpu_model_pm = new CpuL07Model(this,maxminSystem_);
}
-double HostL07Model::next_occuring_event(double /*now*/)
+double HostL07Model::next_occuring_event(double now)
{
- ActionList *runningActions = getRunningActionSet();
- double min = shareResourcesMaxMin(runningActions, maxminSystem_, bottleneck_solve);
-
- for (auto it(runningActions->begin()), itend(runningActions->end()); it != itend ; ++it) {
+ double min = HostModel::next_occuring_event_full(now);
+ for (auto it(getRunningActionSet()->begin()), itend(getRunningActionSet()->end()); it != itend ; ++it) {
L07Action *action = static_cast<L07Action*>(&*it);
if (action->m_latency > 0 && (min < 0 || action->m_latency < min)) {
min = action->m_latency;