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.
Merge pull request #205 from erv-teo/pe-d
Add UML for EditCommand
- Loading branch information
Showing
3 changed files
with
29 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,27 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
|
||
start | ||
:User executes command; | ||
:AddressBookParser parses the command; | ||
:EditCommandParser parses the command; | ||
if () then ([index is valid]) | ||
if () then ([no duplicate prefixes present]) | ||
:get value for each prefix that is present; | ||
:store value in EditPersonDescriptor; | ||
:return new EditCommand; | ||
:replace selected contact with edited contact; | ||
:show all contacts; | ||
else ([duplicate prefixes present]) | ||
:show error message; | ||
endif | ||
else ([index is not valid]) | ||
:show error message; | ||
endif | ||
|
||
|
||
stop | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.