package seedu.tasklist.model;

import java.util.List;
import java.util.Set;

import seedu.tasklist.commons.core.UnmodifiableObservableList;
import seedu.tasklist.commons.exceptions.IllegalValueException;
import seedu.tasklist.model.task.ReadOnlyTask;
import seedu.tasklist.model.task.Task;
import seedu.tasklist.model.task.UniqueTaskList;

/**
 * The API of the Model component.
 */
public interface Model {
    /** Clears existing backing model and replaces with the provided new data. */
    void resetData(ReadOnlyTaskList newData);

    /** Returns the TaskList */
    ReadOnlyTaskList getTaskList();

    /** Deletes the given task. */
    void deleteTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;

    /** Adds the given task */
    void addTask(Task task) throws UniqueTaskList.DuplicateTaskException;
    
    /** Marks the given task as complete */
    void markTaskAsComplete(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;

    /** Returns the filtered task list as an {@code UnmodifiableObservableList<ReadOnlyPerson>} */
    UnmodifiableObservableList<ReadOnlyTask> getFilteredTaskList();

    /** Updates the filter of the filtered task list to show all persons */
    void updateFilteredListToShowAll();

    /** Updates the filter of the filtered task list to filter by the given keywords */
    void updateFilteredTaskList(Set<String> keywords);

    Set<String> getKeywordsFromList(List<ReadOnlyTask> matchingTasks);

    /** Updates the filter of the filtered task list to only show incomplete */
	void updateFilteredListToShowIncomplete();

    UnmodifiableObservableList<Task> getModifiableTaskList();

    void updateFilteredList();

    /** Updates the filter of the filtered task list to only show complete */
    void updateFilteredListToShowComplete();
    
    /** Updates the filter of the filtered task list to only certain priority */
    public void updateFilteredListToShowPriority(String priority);
    
    /** Updates the filter of the filtered task list to only certain date 
     * @throws IllegalValueException */
    public void updateFilteredListToShowDate(String date);

}

@@ -137,72 +137,8 @@
 st;%0A
-import seedu.tasklist.commons.exceptions.IllegalValueException;%0A
 impo
@@ -1986,46 +1986,8 @@
 ate 
-%0A     * @throws IllegalValueException 
 */%0A 

Remove unneccessary imports