forked from nus-cs2103-AY2223S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #73 from ryanczx/update_dg
Update DG findTag - Ryan
- Loading branch information
Showing
6 changed files
with
103 additions
and
7 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,65 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":FindTagCommandParser" as FindTagCommandParser LOGIC_COLOR | ||
participant ":FindTagCommand" as FindTagCommand LOGIC_COLOR | ||
participant "predicate:TagsContainsKeywordsPredicate" as TagsContainsKeywordsPredicate LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute(findTag Finance) | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand(findTag) | ||
activate AddressBookParser | ||
|
||
create FindTagCommandParser | ||
AddressBookParser -> FindTagCommandParser | ||
activate FindTagCommandParser | ||
|
||
create FindTagCommand | ||
FindTagCommandParser -> FindTagCommand | ||
activate FindTagCommand | ||
|
||
create TagsContainsKeywordsPredicate | ||
FindTagCommand -> TagsContainsKeywordsPredicate | ||
activate TagsContainsKeywordsPredicate | ||
|
||
TagsContainsKeywordsPredicate --> FindTagCommand | ||
deactivate TagsContainsKeywordsPredicate | ||
|
||
FindTagCommand --> FindTagCommandParser | ||
deactivate FindTagCommand | ||
|
||
FindTagCommandParser --> AddressBookParser | ||
deactivate FindTagCommandParser | ||
FindTagCommandParser -[hidden]-> AddressBookParser | ||
destroy FindTagCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> FindTagCommand :execute(model) | ||
activate FindTagCommand | ||
|
||
FindTagCommand -> Model :updateFilteredPersonList(predicate) | ||
activate Model | ||
|
||
Model --> FindTagCommand | ||
deactivate Model | ||
|
||
FindTagCommand --> LogicManager | ||
deactivate FindTagCommand | ||
FindTagCommand -[hidden]-> LogicManager | ||
destroy FindTagCommand | ||
|
||
<-- LogicManager | ||
deactivate LogicManager | ||
|
||
@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
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.