RecoSim  1.0
 All Classes Files Functions Variables Enumerations
reconfiguration_unit.h
Go to the documentation of this file.
1 
21 #ifndef RECONFIGURATION_UNIT_H
22 #define RECONFIGURATION_UNIT_H
23 
24 #define SC_INCLUDE_DYNAMIC_PROCESSES
25 
26 #include "window_function.h"
27 #include <systemc.h>
28 #include <list>
29 
30 using namespace std;
31 
33 
34 private:
35  bool busy;
36  sc_time busyTime;
37 
38  // Analog trace stuff
39  sc_time requestTime;
40  sc_time last_window_reset;
41  sc_time busyTimeOnLastCall;
42 
43  WindowFunction window_function;
44 
45 public:
46  ReconfigurationUnit(void) {
47  busy = false;
48  busyTime = SC_ZERO_TIME;
49  requestTime = SC_ZERO_TIME;
50  last_window_reset = SC_ZERO_TIME;
51  }
52 
53  bool isBusy(void);
54  void setBusy(bool b);
55 
56  sc_time getBusyTime(void);
57  sc_time getRequestTime(void);
58 
59  double getOccupationRateOverLastWindow(void);
60 };
61 
62 #endif
Definition: reconfiguration_unit.h:32
Definition: window_function.h:29