forked from citrix123/Process_mangement_Simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathos_sim.cpp
49 lines (43 loc) · 758 Bytes
/
os_sim.cpp
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
#include "os_sim.h"
#include "ui_os_sim.h"
#include <QHBoxLayout>
#include <QLabel>
#include <QCheckBox>
#include <fcfs.h>
#include <sjf.h>
#include <prority.h>
#include <rr.h>
OS_Sim::OS_Sim(QWidget *parent) :
QWidget(parent),
ui(new Ui::OS_Sim)
{
ui->setupUi(this);
}
OS_Sim::~OS_Sim()
{
delete ui;
}
void OS_Sim::on_SchedulingType_highlighted(int index)
{
iTypeOfScheduling = index;
}
void OS_Sim::on_SelectScheduling_clicked()
{
switch(iTypeOfScheduling)
{
case FCFSS:
OpenFCFSWindow();
break;
case SJF:
OpenSjfWindow();
break;
case PRIORITY:
OpenPriorityWIndow();
break;
case RR:
OpenRRWindow();
break;
default:
break;
}
}