-
Notifications
You must be signed in to change notification settings - Fork 0
/
input.cpp
93 lines (77 loc) · 1.43 KB
/
input.cpp
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#include "input.h"
// ctor
input::input(){
}
// dtor
input::~input(){
}
// setter input input
void input::Setter(string _name, float _kWh, unsigned int _slot, unsigned _n_slot, unsigned int _release, unsigned int _deadline, unsigned int _priority){
name = _name;
kWh = _kWh;
slot = _slot;
n_slot = _n_slot;
r = _release;
d = _deadline;
p = _priority;
}
// getter nama input input
string input::GetName(){
return name;
}
// setter nama input input
void input::SetName(string val){
name = val;
}
// getter besar daya listrik per kWh
float input::GetkWh(){
return kWh;
}
// setter besar daya listrik per kWh
void input::SetkWh(float val){
kWh = val;
}
// getter slot waktu pemakaian listrik
unsigned int input::GetSlot(){
return slot;
}
// setter slot waktu pemakaian listrik
void input::SetSlot(unsigned int val){
slot = val;
}
unsigned int input::Getn_slot(){
return n_slot;
}
void input::Setn_slot(unsigned int val){
n_slot = val;
}
unsigned int input::Getrelease(){
return r;
}
void input::SetRelease(){
r = val;
}
unsigned int input::Getn_slot(){
return n_slot;
}
void input::Setn_slot(unsigned int val){
n_slot = val;
}
unsigned int input::Getrelease(){
return r;
}
void input::SetRelease(unsigned int val){
r = val;
}
unsigned int input::GetDeadline(){
return d;
}
void input::Setdeadline(unsigned int val){
d = val;
}
unsigned int input::GetPriority(){
return p;
}
void input::Setpriority(unsigned int val){
p = val;
}