int get_host_count() const;
/** @brief Make a host within that NetZone */
- s4u::Host* create_host(const std::string& name, const std::vector<double>& speed_per_pstate, int core_count);
+ s4u::Host* create_host(const std::string& name, const std::vector<double>& speed_per_pstate, int core_amount);
/** @brief Make a link within that NetZone */
virtual s4u::Link* create_link(const std::string& name, const std::vector<double>& bandwidths,
s4u::Link::SharingPolicy policy);
}
s4u::Host* NetZoneImpl::create_host(const std::string& name, const std::vector<double>& speed_per_pstate,
- int coreAmount)
+ int core_amount)
{
if (hierarchy_ == RoutingMode::unset)
hierarchy_ = RoutingMode::base;
auto* res = (new s4u::Host(name))->set_netpoint(new NetPoint(name, NetPoint::Type::Host, this));
- surf_cpu_model_pm->create_cpu(res, speed_per_pstate, coreAmount);
+ surf_cpu_model_pm->create_cpu(res, speed_per_pstate, core_amount);
return res;
}