forked from AY2324S2-CS2103T-W12-1/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.
- Loading branch information
1 parent
a3f2fba
commit b69ddb6
Showing
2 changed files
with
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
@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 ":ViewCommandParser" as ViewCommandParser LOGIC_COLOR | ||
participant "v:ViewCommand" as ViewCommand LOGIC_COLOR | ||
participant "r:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant "m:Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("view 1") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("view 1") | ||
activate AddressBookParser | ||
|
||
create ViewCommandParser | ||
AddressBookParser -> ViewCommandParser | ||
activate ViewCommandParser | ||
|
||
ViewCommandParser --> AddressBookParser | ||
deactivate ViewCommandParser | ||
|
||
AddressBookParser -> ViewCommandParser : parse("1") | ||
activate ViewCommandParser | ||
|
||
create ViewCommand | ||
ViewCommandParser -> ViewCommand | ||
activate ViewCommand | ||
|
||
ViewCommand --> ViewCommandParser : v | ||
deactivate ViewCommand | ||
|
||
ViewCommandParser --> AddressBookParser : v | ||
deactivate ViewCommandParser | ||
|
||
AddressBookParser --> LogicManager : v | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> ViewCommand : execute(m) | ||
activate ViewCommand | ||
|
||
ViewCommand -> Model : setDisplayClient(personToView) | ||
activate Model | ||
|
||
Model --> ViewCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
ViewCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> ViewCommand | ||
deactivate CommandResult | ||
|
||
ViewCommand --> LogicManager : r | ||
deactivate ViewCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |