forked from SWE501-Spring2017-Bogazici/FinalProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOutputDevice.h
More file actions
55 lines (34 loc) · 740 Bytes
/
OutputDevice.h
File metadata and controls
55 lines (34 loc) · 740 Bytes
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
/*
* OutputDevice.h
*
* Created on: Jun 2, 2017
* Author: Can Candan
*/
#include "Task.h"
#ifndef OUTPUTDEVICE_H_
#define OUTPUTDEVICE_H_
class Simulation;
class OutputDevice {
private:
int id;
bool idle=true;
double quantum;
double activeTime;
Simulation* sim;
public:
OutputDevice();
OutputDevice(int id, double quantum);
void work(Task* task, double time);
int getId() const;
void setId(int id);
bool isIdle() const;
void setIdle(bool idle);
double getQuantum() const;
void setQuantum(double quantum);
double getActiveTime() const;
void setActiveTime(double activeTime);
Simulation* getSim() const;
void setSim(Simulation* sim);
virtual ~OutputDevice();
};
#endif /* OUTPUTDEVICE_H_ */