-
Notifications
You must be signed in to change notification settings - Fork 1
/
prority.h
81 lines (75 loc) · 1.99 KB
/
prority.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
81
#ifndef PRORITY_H
#define PRORITY_H
#include <QWidget>
#include <Sched.h>
void OpenPriorityWIndow();
namespace Ui {
class prority;
}
class prority : public QWidget
{
Q_OBJECT
public:
explicit prority(QWidget *parent = 0);
~prority();
private:
Ui::prority *ui;
Ui::prority *gUi;
void closeEvent(QCloseEvent *);
void ClearFCFSAll();
int iBurstIndex;
int iArrivalIndex;
int iRemovalIndex;
int iPriority;
bool bCPUBusy;
bool bProStart;
bool bProPause;
bool bProReset;
int iProcInRQ;
int iPreemptiveness;
bool bPreempt;
int iProcessInSystem;
QTimer *Timer;
void DeleteTimer();
void ClearProcessLabels();
void ClearBTLabels();
void ClearATLabels();
void ClearProLabels();
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 CreateTimer();
void DisableWidgetsWhenStart();
void EnableWidgetWhenStop();
void DisplayMessage(int);
void DisableWidgetsBeforeProcessCreation();
void EnableWidgetAfterProcessCreation();
private slots:
void on_Prority_textChanged(QString );
void on_ChangePro_highlighted(int index);
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_Preemptiveness_highlighted(int index);
void on_ChangeAT_highlighted(int index);
void on_ChangeBT_highlighted(int index);
void on_CreateProcess_clicked();
};
#endif // PRORITY_H