forked from AY2324S2-CS2103T-F12-2/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
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 AY2324S2-CS2103T-F12-2#79 from bennyLCK/branch-b-D…
…eveloperGuide Add description for the Sort persons feature to the Developer Guide
- Loading branch information
Showing
4 changed files
with
141 additions
and
0 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
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,63 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":SortCommandParser" as SortCommandParser LOGIC_COLOR | ||
participant "s:SortCommand" as SortCommand LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
[-> LogicManager : execute("sort n/") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("sort n/") | ||
activate AddressBookParser | ||
|
||
create SortCommandParser | ||
AddressBookParser -> SortCommandParser : SortCommandParser("sort n/") | ||
activate SortCommandParser | ||
|
||
SortCommandParser --> AddressBookParser | ||
deactivate SortCommandParser | ||
|
||
AddressBookParser -> SortCommandParser : parse("sort n/") | ||
activate SortCommandParser | ||
|
||
create SortCommand | ||
SortCommandParser -> SortCommand : SortCommand("n/") | ||
activate SortCommand | ||
|
||
SortCommand --> SortCommandParser | ||
deactivate SortCommand | ||
|
||
SortCommandParser --> AddressBookParser : s | ||
deactivate SortCommandParser | ||
SortCommandParser -[hidden]-> AddressBookParser : s | ||
destroy SortCommandParser | ||
|
||
|
||
AddressBookParser --> LogicManager : s | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> SortCommand : execute() | ||
activate SortCommand | ||
|
||
SortCommand -> Model : sortAddressBook("n/") | ||
activate Model | ||
|
||
Model --> SortCommand | ||
deactivate Model | ||
|
||
SortCommand --> LogicManager : commandResult | ||
deactivate SortCommand | ||
SortCommand -[hidden]-> LogicManager : commandResult | ||
destroy SortCommand | ||
|
||
[<--LogicManager : commandResult | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":ModelManager" as ModelManager MODEL_COLOR | ||
participant ":AddressBook" as AddressBook MODEL_COLOR | ||
participant ":UniquePersonList" as UniquePersonList MODEL_COLOR | ||
end box | ||
|
||
[-> Model : sortAddressBook("n/") | ||
activate Model | ||
|
||
Model -> ModelManager : sortAddressBook("n/") | ||
activate ModelManager | ||
|
||
ModelManager -> AddressBook : sortAddressBook("n/") | ||
activate AddressBook | ||
|
||
AddressBook -> UniquePersonList : sortPersons("n/") | ||
activate UniquePersonList | ||
|
||
UniquePersonList --> AddressBook | ||
deactivate UniquePersonList | ||
|
||
AddressBook --> ModelManager | ||
deactivate AddressBook | ||
|
||
ModelManager --> Model : | ||
deactivate ModelManager | ||
|
||
[<-- Model : | ||
deactivate Model | ||
|
||
@enduml |