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.
Update DG with porposed template command
- Loading branch information
Showing
3 changed files
with
116 additions
and
1 deletion.
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,70 @@ | ||
@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 ":MakeTemplateCommandParser" as MakeTemplateCommandParser LOGIC_COLOR | ||
participant "d:MakeTemplateCommand" as MakeTemplateCommand 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("makeTemplate 1 TAG/") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("makeTemplate 1 TAG/") | ||
activate AddressBookParser | ||
|
||
create MakeTemplateCommandParser | ||
AddressBookParser -> MakeTemplateCommandParser | ||
activate MakeTemplateCommandParser | ||
|
||
MakeTemplateCommandParser --> AddressBookParser | ||
deactivate MakeTemplateCommandParser | ||
|
||
AddressBookParser -> MakeTemplateCommandParser : parse("1 TAG/") | ||
activate MakeTemplateCommandParser | ||
|
||
create MakeTemplateCommand | ||
MakeTemplateCommandParser -> MakeTemplateCommand | ||
activate MakeTemplateCommand | ||
|
||
MakeTemplateCommand --> MakeTemplateCommandParser : | ||
deactivate MakeTemplateCommand | ||
|
||
MakeTemplateCommandParser --> AddressBookParser : d | ||
deactivate MakeTemplateCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
MakeTemplateCommandParser -[hidden]-> AddressBookParser | ||
destroy MakeTemplateCommandParser | ||
|
||
AddressBookParser --> LogicManager : d | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> MakeTemplateCommand : execute(m) | ||
activate MakeTemplateCommand | ||
|
||
MakeTemplateCommand -> Model : makeTemplate(1 TAG/) | ||
activate Model | ||
|
||
Model --> MakeTemplateCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
MakeTemplateCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> MakeTemplateCommand | ||
deactivate CommandResult | ||
|
||
MakeTemplateCommand --> LogicManager : r | ||
deactivate MakeTemplateCommand | ||
|
||
[<--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