Scheduler
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fcfsDiscipline.h
Go to the documentation of this file.
1 
10 #ifndef FCFSDISCIPLINE_H
11 #define FCFSDISCIPLINE_H
12 
13 #include "schedulingDiscipline.h"
14 
15 namespace Scheduler
16 {
17 
19 {
20 public:
21  static constexpr const char *configKey = "fcfsDiscipline";
22 public:
23  FcfsDiscipline(std::shared_ptr<SchedulerConfiguration> c) : SchedulingDiscipline(c){}
25  std::shared_ptr<Process> selectNextTask(Queue *readyQueue, std::shared_ptr<Process> running, unsigned int deadlineMisses) override;
26  std::string getName();
27  bool preempts(TriggeringEvent trigger);
28 };
29 
30 }
31 
32 #endif
TriggeringEvent
Definition: eventType.h:16
This class implements the ready queue and the wait queue. Those queues contain processes ready to run...
Definition: queue.h:28
bool preempts(TriggeringEvent trigger)
returns true if the argument is a scheduling trigger for this specific discipline ...
static constexpr const char * configKey
FcfsDiscipline(std::shared_ptr< SchedulerConfiguration > c)
std::shared_ptr< Process > selectNextTask(Queue *readyQueue, std::shared_ptr< Process > running, unsigned int deadlineMisses) override
select the best task to run at this point.
std::string getName()
returns the name of that discipline
def deadlineMisses(reportsFolder, configFilename, reportFilename, runningTime)
Definition: shortReport.py:36