forked from citrix123/Process_mangement_Simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfcfs.h
76 lines (70 loc) · 1.8 KB
/
fcfs.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
#ifndef FCFS_H
#define FCFS_H
#include <QWidget>
#include <QCloseEvent>
#include <Sched.h>
void OpenFCFSWindow();
namespace Ui {
class FCFS;
}
class FCFS : public QWidget
{
Q_OBJECT
public:
explicit FCFS(QWidget *parent = 0);
~FCFS();
int iTypeOFScheduling;
private:
Ui::FCFS *ui;
Ui::FCFS *gUi;
void closeEvent(QCloseEvent *);
void ClearFCFSAll();
int iBurstIndex;
int iArrivalIndex;
int iRemovalIndex;
bool bCPUBusy;
int iProcInRQ;
bool bFcfsStart;
bool bFcfsPause;
bool bFcfsReset;
int iProcessInSystem;
QTimer *Timer;
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(char *proc,int iProcID);
void DisplayMessage(int);
void DisableWidgetsWhenStart();
void EnableWidgetWhenStop();
void DisableWidgetsBeforeProcessCreation();
void EnableWidgetAfterProcessCreation();
private slots:
void on_PauseSim_clicked();
void CallDispatcher();
void on_ResetSim_clicked();
void on_StepSim_clicked();
void on_StartSim_clicked();
void on_ArrivalTime_textChanged(QString );
void on_ChangeAT_highlighted(int index);
void on_ChangeBT_highlighted(int index);
void on_BurstTime_textChanged(QString );
void on_CreateProcess_clicked();
};
#endif // FCFS_H