forked from nus-cs2103-AY1819S1/addressbook-level4
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Logic.java
56 lines (46 loc) · 2.19 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
package seedu.address.logic;
import javafx.collections.ObservableList;
import seedu.address.logic.commands.CommandResult;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.logic.parser.exceptions.ParseException;
import seedu.address.model.accounting.Debt;
import seedu.address.model.friend.Friendship;
import seedu.address.model.group.Group;
import seedu.address.model.jio.Jio;
import seedu.address.model.restaurant.Restaurant;
/**
* 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 an unmodifiable view of the filtered list of restaurants */
ObservableList<Restaurant> getFilteredRestaurantList();
/** Returns an unmodifiable view of the filtered list of friends */
ObservableList<Friendship> getFriendRequestsList();
ObservableList<Friendship> getFriendsList();
/** Returns an unmodifiable view of the filtered list of groups */
ObservableList<Group> getGroupList();
/** Returns an unmodifiable view of the filtered list of groups */
ObservableList<Group> getGroupRequestList();
/** Returns an unmodifiable view of the filtered list of jios */
ObservableList<Jio> getJioList();
/** Returns an unmodifiable view of the filtered list of debts */
ObservableList<Debt> getDebtList();
ObservableList<Debt> getCreditorList();
ObservableList<Debt> getDebtorList();
ObservableList<Debt> getDebtRequestReceived();
ObservableList<Debt> getDebtRequestSent();
void debtListing(ObservableList<Debt> debt);
void friendListing(ObservableList<Friendship> list);
void groupListing(ObservableList<Group> list);
/** Returns the list of input entered by the user, encapsulated in a {@code ListElementPointer} object */
ListElementPointer getHistorySnapshot();
boolean isCurrentlyLoggedIn();
}