forked from CS2103AUG2016-T11-C1/main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Logic.java
35 lines (27 loc) · 972 Bytes
/
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
package seedu.tasklist.logic;
import java.io.IOException;
import org.json.JSONException;
import org.json.simple.parser.ParseException;
import javafx.collections.ObservableList;
import seedu.tasklist.logic.commands.CommandResult;
import seedu.tasklist.model.ReadOnlyTaskList;
import seedu.tasklist.model.TaskCounter;
import seedu.tasklist.model.task.ReadOnlyTask;
/**
* 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 IOException
* @throws JSONException
* @throws ParseException
*/
CommandResult execute(String commandText) throws IOException, JSONException, ParseException;
/** Returns the filtered list of persons */
ObservableList<ReadOnlyTask> getFilteredTaskList();
ReadOnlyTaskList getTaskList();
TaskCounter getTaskCounter();
}