forked from nus-cs2103-AY2122S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from jeffsieu/branch-Update-Task-Filter-Docs
Update DevGuide with better TaskFilter explanations
- Loading branch information
Showing
11 changed files
with
110 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
actor Actor as user | ||
participant UI as UI UI_COLOR | ||
|
||
box "Logic" LOGIC_COLOR_T1 | ||
participant ":LogicManager" as lm LOGIC_COLOR | ||
end box | ||
|
||
box "Model" MODEL_COLOR_T1 | ||
participant ":ModelManager" as mm MODEL_COLOR | ||
participant "filteredTasks:FilteredList<Task>" as ft MODEL_COLOR | ||
end box | ||
|
||
autoactivate on | ||
user -> UI: add task filter | ||
UI -> lm: addTaskFilter(taskFilter) | ||
lm -> mm: addTaskFilter(taskFilter) | ||
mm -> mm: recalculateFilteredTaskList() | ||
mm -> mm: updateFilteredTaskList(effectivePredicate) | ||
mm -> ft: setPredicate(predicate) | ||
UI <- ft: update gui | ||
return | ||
return | ||
return | ||
return | ||
lm <-- mm | ||
GUI <-- lm | ||
user <-- GUI | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box "Logic" LOGIC_COLOR_T1 | ||
participant ":LogicManager" as lm LOGIC_COLOR | ||
end box | ||
box "Model" MODEL_COLOR_T1 | ||
participant ":ModelManager" as mm MODEL_COLOR | ||
participant "availableTaskFilters: ObservableList<TaskFilter>" as atf MODEL_COLOR | ||
end box | ||
|
||
autoactivate on | ||
-> lm: addTask(task) | ||
lm -> mm: addTask(task) | ||
mm -> mm: recomputeAvailableTaskFilters() | ||
mm -> atf: clear() | ||
atf -> atf: updateListeners() | ||
return | ||
return | ||
|
||
mm -> atf: addAll(newTaskFilters) | ||
atf -> atf: updateListeners() | ||
|
||
return | ||
return | ||
return | ||
return | ||
return | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@startuml | ||
start | ||
:Request task deletion; | ||
if () then ([Task contains deleted tags]) | ||
:Remove deleted tags' task filters\nfrom available; | ||
:Remove deleted tags' task filters\nfrom selected filters; | ||
else ([else]) | ||
endif | ||
:Delete task; | ||
:Recompute filtered task list; | ||
stop | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters