-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask.h
More file actions
65 lines (43 loc) · 1.41 KB
/
Task.h
File metadata and controls
65 lines (43 loc) · 1.41 KB
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
#pragma once
/************************************************************************
* Task.h
* Author: Stephen Thomson
* Date: 2/8/2024
* Description: This file contains the Task class which is used to store
* information about a task in the system.
* *********************************************************************/
#include <iostream>
#include <string>
using namespace std;
class Task
{
private:
string m_name;
int m_startTime;
int m_computationTime;
int m_hardDeadline;
int m_softDeadline;
int m_period;
int m_currPeriod;
int m_laxity;
public:
Task(string name = "", int startTime = 0, int computationTime = 0, int softDeadline = 0, int hardDeadline = 0, int period = 0);
Task& operator=(const Task& task);
int getStartTime();
void setStartTime(int startTime);
int getComputationTime();
void setComputationTime(int computationTime);
int getHardDeadline();
void setHardDeadline(int hardDeadline);
int getSoftDeadline();
void setSoftDeadline(int softDeadline);
int getPeriod();
void setPeriod(int period);
void printTask();
void setName(string name);
string getName();
void setLaxity(int laxity);
int getLaxity();
void incramentCurrPeriod();
int getCurrPeriod();
};