forked from nus-cs2103-AY2021S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Logic.java
105 lines (88 loc) · 2.94 KB
/
Logic.java
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
94
95
96
97
98
99
100
101
102
103
104
105
package seedu.address.logic;
import java.nio.file.Path;
import java.time.LocalDate;
import javafx.collections.ObservableList;
import seedu.address.commons.core.GuiSettings;
import seedu.address.logic.commands.CommandResult;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.logic.parser.exceptions.ParseException;
import seedu.address.model.ReadOnlyTutorBook;
import seedu.address.model.appointment.Appointment;
import seedu.address.model.budget.Budget;
import seedu.address.model.event.Event;
import seedu.address.model.grade.Grade;
import seedu.address.model.reminder.Reminder;
import seedu.address.model.schedule.Schedule;
import seedu.address.model.tutor.Tutor;
/**
* API of the Logic component
*/
public interface Logic {
/**
* Executes the command and returns the result.
*
* @param commandText The command as entered by the user.
* @return the result of the command execution.
* @throws CommandException If an error occurs during command execution.
* @throws ParseException If an error occurs during parsing.
*/
CommandResult execute(String commandText) throws CommandException, ParseException;
/**
* Returns the TutorBook.
*
* @see seedu.address.model.Model#getTutorBook()
*/
ReadOnlyTutorBook getTutorBook();
/**
* Returns an unmodifiable view of the filtered list of persons.
*/
ObservableList<Tutor> getFilteredPersonList();
/**
* Returns an unmodifiable view of the filtered list of appointments.
*/
ObservableList<Appointment> getFilteredAppointmentList();
/**
* Returns an unmodifiable view of the filtered list of events.
*/
ObservableList<Event> getFilteredEventList();
/**
* Returns an unmodifiable view of the filtered list of grades.
*/
ObservableList<Grade> getFilteredGradeList();
/**
* Returns an unmodifiable view of the person filter string list.
*/
ObservableList<String> getPersonFilterStringList();
/**
* Returns an unmodifiable view of the appointment filter string list.
*/
ObservableList<String> getAppointmentFilterStringList();
/**
* Returns an unmodifiable view of the filtered list of schedules.
*/
ObservableList<Schedule> getFilteredScheduleList();
/**
* Returns an unmodifiable view of the appointment filter string list.
*/
ObservableList<Reminder> getFilteredReminderList();
/**
* @return An unmodifiable view of the budget list.
*/
ObservableList<Budget> getBudgetList();
/**
* Returns the user prefs' address book file path.
*/
Path getAddressBookFilePath();
/**
* Returns the user prefs' GUI settings.
*/
GuiSettings getGuiSettings();
/**
* Set the user prefs' GUI settings.
*/
void setGuiSettings(GuiSettings guiSettings);
/**
* Returns the query date for Timetable Window.
*/
LocalDate getTimeTableDate();
}