-
Notifications
You must be signed in to change notification settings - Fork 2
/
Operation.h
41 lines (26 loc) · 1.12 KB
/
Operation.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
35
36
37
38
39
40
41
//
// Created by kwh44 on 12/17/18.
//
#ifndef HYBRID_ALGORITHM_OPERATION_H
#define HYBRID_ALGORITHM_OPERATION_H
class Operation {
int operation_number;
int job_number;
int processing_time;
int machine;
public:
Operation(int operation, int job, int time, int machine_required) : operation_number(operation),
job_number(job), processing_time(time),
machine(machine_required) {}
Operation() = default;
Operation(const Operation &) = default;
Operation(Operation &) = default;
Operation(Operation &&other) noexcept = default;
Operation &operator=(Operation &&) noexcept = default;
Operation &operator=(const Operation &other) = default;
inline int get_operation_number() const { return operation_number; }
inline int get_job_number() const { return job_number; }
inline int get_processing_time() const { return processing_time; }
inline int get_machine() const { return machine; }
};
#endif //HYBRID_ALGORITHM_OPERATION_H