Scheduler
freqGovernor.h
Go to the documentation of this file.
1 
10 #ifndef FREQGOVERNOR_H
11 #define FREQGOVERNOR_H
12 
13 #include <string>
14 
16 #include <scheduler/processor.h>
17 
18 namespace Scheduler
19 {
20 
21 class Queue;
22 class Processor;
23 
25 {
26 public:
27  virtual ~FreqGovernor(){};
28  virtual void updateFreq(Processor *proc, Queue *readyQueue)=0;
29  virtual bool freqChangeEvent(TriggeringEvent trigger)=0;
30  virtual std::string getName()=0;
31  virtual void printReport(std::string /*folder*/){};
32 };
33 
34 }
35 
36 #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
virtual void printReport(std::string)
Definition: freqGovernor.h:31
virtual bool freqChangeEvent(TriggeringEvent trigger)=0
virtual std::string getName()=0
virtual void updateFreq(Processor *proc, Queue *readyQueue)=0