-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjob.cpp
More file actions
59 lines (47 loc) · 784 Bytes
/
Copy pathjob.cpp
File metadata and controls
59 lines (47 loc) · 784 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
53
54
55
56
57
58
#include "project.h"
#include <iostream>
using namespace Project;
void Job::set_cmd(std::string cmd)
{
this->cmd=cmd;
}
void Job::set_arr_time(int arrive)
{
this->arrive=arrive;
}
void Job::set_dur_time(int duration)
{
this->duration=duration;
}
void Job::set_wait_time(int wait)
{
this->wait_time=wait;
}
std::string Job::get_cmd() const
{
return this->cmd;
}
int Job::get_arr_time() const
{
return this->arrive;
}
int Job::get_dur_time() const
{
return this->duration;
}
int Job::get_wait_time() const
{
return this->wait_time;
}
Job Job::get_job()
{
return *this;
}
bool Job::operator<(const Job & j) const
{
return this->arrive < j.arrive;
}
bool Job::operator>(const Job & j) const
{
return this->duration > j.duration;
}