Skip to content

Commit

Permalink
Update 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 ef4157a commit b03724d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/diagrams/FavActivityDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ start
'diamond we place it as the true branch instead.

if () then ([index is valid])
if () then ([Person has favourite as false])
:Construct a new Person object with favourite as true;
if () then ([Person is favourite])
:Create new Person with same values but is a favourite;
:Replace the original Person with the new one;
:Refresh the list of Person;
:Refresh the list of Persons;
else ([else])
:Throws CommandException that Person has favourite as true;
:Show error message to user that person is already a favourite;
endif
else ([else])
:Throw CommandException that index is is invalid;
:Show error message to user that index is invalid;
endif
stop
@enduml
10 changes: 5 additions & 5 deletions docs/diagrams/UnfavActivityDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ start
'diamond we place it as the true branch instead.

if () then ([index is valid])
if () then ([Person has favourite as true])
:Construct a new Person object with favourite as false;
if () then ([Person is favourite])
:Create new Person with same values but is not a favourite;
:Replace the original Person with the new one;
:Refresh the list of Person;
:Refresh the list of Persons;
else ([else])
:Throws CommandException that Person has favourite as false;
:Show error message to user that person is already not a favourite;
endif
else ([else])
:Throw CommandException that index is is invalid;
:Show error message to user 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 b03724d

Please sign in to comment.