-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScheduleManager.java
More file actions
56 lines (38 loc) · 1.11 KB
/
ScheduleManager.java
File metadata and controls
56 lines (38 loc) · 1.11 KB
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
package schedule.mvp.com350;
import java.util.Stack;
public class ScheduleManager {
public User user;
private Stack<Schedule> editHistory;
private Stack<Schedule> undoneHistory;
public Schedule currentSchedule;
public Search currentSearch;
public void LoadSchedule(String name) {
// Load a schedule by name
}
private void GetProfessorRatings() {
// Retrieve and store professor ratings
}
private void RetrieveCourseList() {
// Fetch and store course list
}
public boolean CreateEvent(Event e) {
// Attempt to create an event in the current schedule
return true; // Placeholder
}
public boolean AddCourse(Course c) {
// Add a course to the current schedule
return true; // Placeholder
}
public void NewSchedule(String name) {
// Create a new schedule with the given name
}
public void RemCourse(Course c) {
// Remove a course from the schedule
}
public void Redo() {
// Redo last undone action
}
public void Undo() {
// Undo last action
}
}