Newer
Older
package com.example.schedulerapp;
public class Employee {
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
private boolean manager;
private final int ID;
private String position;
private float wage;
private String name;
private String number;
private Shift[] availability;
public Employee(String name, String position, float wage, String number, boolean manager, Shift[] availability, int ID) {
this.manager = manager;
this.ID = ID;
this.position = position;
this.wage = wage;
this.name = name;
this.number = number;
this.availability = availability;
}
public String getPosition(){
return this.position;
}
public void setPosition(String position) {
this.position = position;
}
public float getWage() {
return this.wage;
}
public void setWage(float wage) {
this.wage = wage;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getNumber() {
return this.number;
}
public void setNumber(String number) {
this.number = number;
}
public Shift[] getAvailability() {
return availability;
}
public void setAvailability(Shift[] availability) {
this.availability = availability;
}
public void setManager(boolean manager) {
this.manager = manager;
}
public boolean isManager() {
return manager;
}
public int getID() {
return ID;
}