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.
Add planned enhancements for tag and insurance command
Added planned enhancements for tag and insurance command
Showing
4 changed files
with
93 additions
and
10 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,21 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User provides tags to add and delete; | ||
|
||
'Since the beta syntax does not support placing the condition outside the | ||
'diamond we place it as the true branch instead. | ||
if () then | ||
:Update tags of targeted customer; | ||
if () then | ||
:Save updated customer to Model; | ||
else ([updated customer's tag set unchanged or invalid]) | ||
stop | ||
endif | ||
stop | ||
else ([has conflicting tags to add and delete]) | ||
stop | ||
endif | ||
@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,17 @@ | ||
@startuml | ||
!include ../style.puml | ||
skinparam arrowThickness 1.1 | ||
skinparam arrowColor LOGIC_COLOR | ||
skinparam classBackgroundColor LOGIC_COLOR | ||
|
||
Class TagCommand | ||
Class Index | ||
Class UpdatePersonTagsDescriptor | ||
Class Tag | ||
|
||
TagCommand --> "1" Index | ||
TagCommand --> "1" UpdatePersonTagsDescriptor | ||
UpdatePersonTagsDescriptor --> "~* tags to add" Tag | ||
UpdatePersonTagsDescriptor --> "~* tags to delete" Tag | ||
|
||
@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