-
Notifications
You must be signed in to change notification settings - Fork 0
/
PProcess.h
34 lines (30 loc) · 807 Bytes
/
PProcess.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
#ifndef PROCESS_H
#define PROCESS_H
#include <QMainWindow>
class Process{
private:
int id;
int arrivalTime;
int remainingTime;
int burstTime;
int priority;
QColor color;
//static Process * NULLPROCESS;
public:
static Process GetNullProcess();
static bool isLess(Process p1,Process p2);
Process(int id=0,int a=0,int b=0,int p=0, Qt::GlobalColor color = Qt::white);
int getPriority() const;
void setPriority(int value);
int getRemainingTime() const;
void setRemainingTime(int value);
int getArrivalTime() const;
void setArrivalTime(int value);
int getId() const;
void setId(int value);
QColor getColor();
void setColor(QColor value);
int getBurstTime() const;
void setBurstTime(int value);
};
#endif // PROCESS_H