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