-LinkL07::LinkL07(NetworkL07Model* model, const std::string& name, double bandwidth, double latency,
- s4u::Link::SharingPolicy policy)
- : LinkImpl(model, name, model->get_maxmin_system()->constraint_new(this, bandwidth))
-{
- bandwidth_.peak = bandwidth;
- latency_.peak = latency;
-
- if (policy == s4u::Link::SharingPolicy::FATPIPE)
- get_constraint()->unshare();
-
- s4u::Link::on_creation(this->piface_);
-}
-
-kernel::resource::Action* CpuL07::execution_start(double size)
-{
- sg_host_t host_list[1] = {get_host()};
-
- double* flops_amount = new double[1]();
- flops_amount[0] = size;
-
- kernel::resource::Action* res =
- static_cast<CpuL07Model*>(get_model())->hostModel_->execute_parallel(1, host_list, flops_amount, nullptr, -1);
+ kernel::resource::CpuAction* res =
+ static_cast<CpuL07Model*>(get_model())->hostModel_->execute_parallel(host_list, flops_amount, nullptr, -1);