-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJob.cc
39 lines (31 loc) · 860 Bytes
/
Job.cc
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
#include "Job.hh"
Job::time_instant Job::get_completion_time() const{
return completion_time;
}
Job::time_instant Job::get_submission_time() const{
return submission_time;
}
Job::id_type Job::get_ID() const{
return id;
}
void Job::set_completion_time (time_instant t){
completion_time = t;
}
void Job::set_submission_time (time_instant t){
submission_time = t;
}
void Job::set_id_stages(const std::vector<id_type>& v){
id_stages = v;
}
void Job::printj() const{
std::cout << "id job: " << id << '\n' << " submission_time " << submission_time << '\n'
<< " completion_time " << completion_time << '\n';
}
Job& Job::operator=(const Job& j){
id = j.get_ID();
id_app = j.get_id_app();
submission_time = j.get_submission_time();
completion_time = j.get_completion_time();
id_stages = j.get_id_stages();
return *this;
};