Scheduler
maxGovernor.h
Go to the documentation of this file.
1 
10 #ifndef MAXGOVERNOR_H
11 #define MAXGOVERNOR_H
12 
13 #include "freqGovernor.h"
14 
15 namespace Scheduler
16 {
17 
18 class MaxGovernor : public FreqGovernor
19 {
20 public:
21  static constexpr const char *configKey = "maxGovernor";
22 public:
23  MaxGovernor();
25  void updateFreq(Processor *proc, Queue *readyQueue);
26  bool freqChangeEvent(TriggeringEvent trigger);
27  std::string getName();
28 private:
29  const double maxFreq{2.0}; /*TODO make this a const and solve the resulting initialization problem*/
30 };
31 
32 }
33 
34 #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 freqChangeEvent(TriggeringEvent trigger)
Definition: maxGovernor.cpp:27
std::string getName()
Definition: maxGovernor.cpp:32
void updateFreq(Processor *proc, Queue *readyQueue)
Definition: maxGovernor.cpp:22
static constexpr const char * configKey
Definition: maxGovernor.h:21