forked from nus-cs2103-AY2324S1/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 #198 from wamps-jp/branch-DG-updates
Update DG and PPP
- Loading branch information
Showing
4 changed files
with
193 additions
and
27 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,69 @@ | ||
@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 ":SortCommand" as SortCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("sort --status") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("sort --status") | ||
activate AddressBookParser | ||
|
||
create SortCommandParser | ||
AddressBookParser -> SortCommandParser | ||
activate SortCommandParser | ||
|
||
SortCommandParser --> AddressBookParser | ||
deactivate SortCommandParser | ||
|
||
AddressBookParser -> SortCommandParser : parse("--status") | ||
activate SortCommandParser | ||
|
||
create SortCommand | ||
SortCommandParser -> SortCommand | ||
activate SortCommand | ||
|
||
SortCommand --> SortCommandParser | ||
deactivate SortCommand | ||
|
||
SortCommandParser --> AddressBookParser | ||
deactivate SortCommandParser | ||
SortCommandParser -[hidden]-> AddressBookParser | ||
destroy SortCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> SortCommand : execute() | ||
activate SortCommand | ||
|
||
SortCommand -> Model : updateSortedApplicationList(STATUS_COMPARATOR) | ||
activate Model | ||
|
||
Model --> SortCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
SortCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> SortCommand | ||
deactivate CommandResult | ||
|
||
SortCommand --> LogicManager : result | ||
deactivate SortCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
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