Scheduler
specialMailbox.h
Go to the documentation of this file.
1 
10 #ifndef SPECIAL_MAILBOX_H
11 #define SPECIAL_MAILBOX_H
12 
13 #include <memory>
14 
15 namespace Scheduler
16 {
17 class Process;
19 {
20 public:
21  static SpecialMailbox *getInstance();
22 private:
23  static SpecialMailbox *instance;
24 public:
25  void put(double currentTime, std::shared_ptr<Process> p);
26  double get();
27  void invalidate();
28  bool isValid();
29 private:
30  SpecialMailbox(){};
31  double reward{0.0};
32  bool valid{false};
33  const double maxCost{1.0}; //what value for this ?
34  //right now it is the value of MISSED_DEADLINE_REWARD in rlDiscipline.cpp
35  const double fraction{0.05};
36 };
37 }
38 
39 #endif
void put(double currentTime, std::shared_ptr< Process > p)
static SpecialMailbox * getInstance()
Definition: reward.py:1