Skip to content

Commit

Permalink
Modify fav and unfav activity diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
tsulim committed Apr 15, 2024
1 parent b3214b8 commit 1ab026a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions docs/diagrams/FavActivityDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
skin rose
skinparam ActivityFontSize 15
skinparam ArrowFontSize 12
skinparam DefaultTextAlignment center

start
:User executes fav command;

Expand All @@ -10,14 +12,14 @@ start

if () then ([index is valid])
if () then ([Person is favourite])
:Create new Person with same values but is a favourite;
:Replace the original Person with the new one;
:Create new Person with same\n values but is a favourite;
:Replace the original Person\n with the new one;
:Refresh the list of Persons;
else ([else])
:Show error message to user that person is already a favourite;
:Show error message to user\n that person is already a favourite;
endif
else ([else])
:Show error message to user that index is invalid;
:Show error message to user\n that index is invalid;
endif
stop
@enduml
10 changes: 6 additions & 4 deletions docs/diagrams/UnfavActivityDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
skin rose
skinparam ActivityFontSize 15
skinparam ArrowFontSize 12
skinparam DefaultTextAlignment center

start
:User executes unfav command;

Expand All @@ -10,14 +12,14 @@ start

if () then ([index is valid])
if () then ([Person is favourite])
:Create new Person with same values but is not a favourite;
:Replace the original Person with the new one;
:Create new Person with same\n values but is not a favourite;
:Replace the original Person\n with the new one;
:Refresh the list of Persons;
else ([else])
:Show error message to user that person is already not a favourite;
:Show error message to user\n that person is already not a favourite;
endif
else ([else])
:Show error message to user that index is invalid;
:Show error message to user\n that index is invalid;
endif
stop
@enduml
Binary file modified docs/images/FavActivityDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/UnfavActivityDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1ab026a

Please sign in to comment.