-
Notifications
You must be signed in to change notification settings - Fork 0
/
Schedule.hxx
70 lines (52 loc) · 1.11 KB
/
Schedule.hxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef SCHEDULE_H
#define SCHEDULE_H
#include <list>
#include "Task.hxx"
/**
* Base class to allow definition of multiple policies
* functions as FIFO
* @author Richard Kerr
* @author Dillon Koval
*/
class Schedule
{
public:
Schedule(std::list<Task*>*);
virtual ~Schedule();
virtual void reorder();
protected:
std::list<Task*>* taskList;
};
/**
* Definition for Earliest Deadline First policy
*/
class EDF_Schedule : public Schedule {
public:
EDF_Schedule(std::list<Task*>*);
virtual void reorder();
};
/**
* Definition for Priority policy
*/
class Priority_Schedule : public Schedule {
public:
Priority_Schedule(std::list<Task*>*);
virtual void reorder();
};
/**
* Definition for Round Robin scheduling policy
*/
class RR_Schedule : public Schedule {
public:
RR_Schedule(std::list<Task*>*);
virtual void reorder();
};
/**
* Definition for Shortest Job First policy
*/
class SJF_Schedule : public Schedule {
public:
SJF_Schedule(std::list<Task*>*);
virtual void reorder();
};
#endif