35 std::shared_ptr<DomainModel> model = getModel<DomainModel>();
36 std::shared_ptr<Scheduler::Process> process;
37 if (model->running !=
nullptr && model->running->getPid() ==
id)
38 return model->running;
39 for (
auto it = model->readyQueue->begin(); it != model->readyQueue->end(); it++)
41 assert((*it) !=
nullptr);
42 if ( (*it)->getPid() ==
id)
50 return (
"scheduling process " +
id);
std::string getName() override
std::string getName() override
std::shared_ptr< Scheduler::Process > getProcessToRun() override
returns the process to run according to the RL algorithm
void performAction() override
void performAction() override
virtual std::shared_ptr< Scheduler::Process > getProcessToRun()
returns the process to run according to the RL algorithm