-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrr.h
80 lines (73 loc) · 1.86 KB
/
rr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#ifndef RR_H
#define RR_H
#include <QWidget>
#include <Sched.h>
void OpenRRWindow();
namespace Ui {
class rr;
}
class rr : public QWidget
{
Q_OBJECT
public:
explicit rr(QWidget *parent = 0);
~rr();
private:
Ui::rr *ui;
Ui::rr *gUi;
void closeEvent(QCloseEvent *);
void ClearFCFSAll();
int iBurstIndex;
int iArrivalIndex;
int iTimeQuantum;
int iTempTimeQuantum;
bool bCPUBusy;
int iProcInRQ;
bool bRRStart;
bool bRRPause;
bool bRRReset;
int iProcessInSystem;
QTimer *Timer;
QList<int> l;
void DeleteTimer();
void CreateTimer();
void ClearProcessLabels();
void ClearBTLabels();
void ClearATLabels();
void ClearRQLabels();
void ClearCPULabels();
void ClearBTTimeLabel();
void ClearAllStructure();
void ClearStructureForStop();
void ResetSimulator();
void ProcessDisplayOnHMi(ProcessDef *);
void UpdateColourWhenInRQ();
void UpdateColourWhenInCPU();
void UpdateColourWhenInNormal();
void PutIntoTheCPU();
void Dispatcher();
void ClearLabelColour();
void UpdateDisplayRQ();
void UpdateReadyQueue();
void FillDisplayRQ(ProcessDef);
void DisplayMessage(int);
void BurstTimeDisplay(int);
bool CheckQValueBeforeStart();
void DisableWidgetsWhenStart();
void EnableWidgetWhenStop();
void DisableWidgetsBeforeProcessCreation();
void EnableWidgetAfterProcessCreation();
private slots:
void CallDispatcher();
void on_ResetSim_clicked();
void on_StepSim_clicked();
void on_PauseSim_clicked();
void on_StartSim_clicked();
void on_ArrivalTime_textChanged(QString );
void on_BurstTime_textChanged(QString );
void on_ChangeAT_highlighted(int index);
void on_ChangeBT_highlighted(int index);
void on_CreateProcess_clicked();
void on_TimeQuantum_textChanged(QString );
};
#endif // RR_H