forked from nus-cs2103-AY2324S2/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.
Update dg with edit menu and fix typo
- Loading branch information
1 parent
bbeb026
commit c633df6
Showing
5 changed files
with
134 additions
and
6 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,87 @@ | ||
@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 ":EditCommandParser" as EditCommandParser LOGIC_COLOR | ||
participant ":EditMenuCommandParser" as EditMenuCommandParser LOGIC_COLOR | ||
participant "e:EditMenuCommand" as EditMenuCommand 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("edit m/1 pn/Pie") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("edit m/1 pn/Pie") | ||
activate AddressBookParser | ||
|
||
create EditCommandParser | ||
AddressBookParser -> EditCommandParser | ||
activate EditCommandParser | ||
|
||
EditCommandParser --> AddressBookParser | ||
deactivate EditCommandParser | ||
|
||
AddressBookParser -> EditCommandParser : parse("m/1 pn/Pie") | ||
activate EditCommandParser | ||
|
||
create EditMenuCommandParser | ||
EditCommandParser -> EditMenuCommandParser | ||
activate EditMenuCommandParser | ||
|
||
EditMenuCommandParser --> EditCommandParser | ||
deactivate EditMenuCommandParser | ||
|
||
EditCommandParser -> EditMenuCommandParser : parse("m/1 pn/Pie") | ||
activate EditMenuCommandParser | ||
|
||
create EditMenuCommand | ||
EditMenuCommandParser -> EditMenuCommand | ||
activate EditMenuCommand | ||
|
||
EditMenuCommand --> EditMenuCommandParser : | ||
deactivate EditMenuCommand | ||
|
||
EditMenuCommandParser --> EditCommandParser : e | ||
deactivate EditMenuCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
EditMenuCommandParser -[hidden]-> EditCommandParser | ||
destroy EditMenuCommandParser | ||
|
||
EditCommandParser --> AddressBookParser : e | ||
deactivate EditCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
EditCommandParser -[hidden]-> AddressBookParser | ||
destroy EditCommandParser | ||
|
||
AddressBookParser --> LogicManager : e | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> EditMenuCommand : execute(m) | ||
activate EditMenuCommand | ||
|
||
EditMenuCommand -> Model : editProduct(target, editedProduct) | ||
activate Model | ||
|
||
Model --> EditMenuCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
EditMenuCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> EditMenuCommand | ||
deactivate CommandResult | ||
|
||
EditMenuCommand --> LogicManager : r | ||
deactivate EditMenuCommand | ||
|
||
[<--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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":AddressBook" as AddressBook MODEL_COLOR | ||
end box | ||
|
||
box ProductMenu | ||
participant ":ProductMenu" as ProductMenu | ||
end box | ||
|
||
[-> Model : editProduct(target, editedProduct) | ||
activate Model | ||
|
||
Model -> AddressBook : editProduct(target, editedProduct) | ||
activate AddressBook | ||
|
||
AddressBook -> ProductMenu : editProduct(target, editedProduct) | ||
activate ProductMenu | ||
|
||
ProductMenu -> ProductMenu : editProduct(target, editedProduct) | ||
ProductMenu -> AddressBook | ||
deactivate ProductMenu | ||
|
||
AddressBook --> Model : | ||
deactivate AddressBook | ||
|
||
[<-- Model | ||
deactivate Model | ||
|
||
@enduml |
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.