Newer
Older
//todo: how does sql work? would that be easier?
import java.util.ArrayList;
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
private ArrayList<Shift> shifts;
public Schedule(){
shifts = new ArrayList<>();
}
// output: all shifts
public ArrayList<Shift> getAllShifts(){
return shifts;
}
//todo: java date?
// output: all shifts starting and/or ending on the given date
public ArrayList<Shift> getDateShifts(){
ArrayList<Shift> result = new ArrayList<>();
// get all appropriate shifts, add to result
return null;
//return result;
}
//todo
// output: all shifts assigned to given employee
public ArrayList<Shift> getEmpShifts(int empID){
ArrayList<Shift> result = new ArrayList<>();
// get all appropriate shifts, add to result
return null;
//return result;
}
//todo
// output: all shifts marked as available
public ArrayList<Shift> getAvailableShifts(){
ArrayList<Shift> result = new ArrayList<>();
// get all appropriate shifts, add to result
return null;
//return result;
}