/* iterate for all virtual machines */
for (s4u::VirtualMachine* const& ws_vm : vm::VirtualMachineImpl::allVms_) {
Cpu* cpu = ws_vm->pimpl_cpu;
- int active_tasks = cpu->constraint()->get_variable_amount();
+ int active_tasks = cpu->get_constraint()->get_variable_amount();
/* The impact of the VM over its PM is the min between its vCPU amount and the amount of tasks it contains */
- int impact = std::min(active_tasks, ws_vm->getImpl()->coreAmount());
+ int impact = std::min(active_tasks, ws_vm->get_impl()->get_core_amount());
XBT_DEBUG("set the weight of the dummy CPU action of VM%p on PM to %d (#tasks: %d)", ws_vm, impact, active_tasks);
if (impact > 0)
- ws_vm->getImpl()->action_->set_priority(1. / impact);
+ ws_vm->get_impl()->action_->set_priority(1. / impact);
else
- ws_vm->getImpl()->action_->set_priority(0.);
+ ws_vm->get_impl()->action_->set_priority(0.);
}
}
{
std::vector<const char*> storages;
for (auto const& s : storage_)
- if (s.second->getHost() == piface_->getCname())
- storages.push_back(s.second->piface_.getCname());
+ if (s.second->getHost() == piface_->get_cname())
+ storages.push_back(s.second->piface_.get_cname());
return storages;
}