-
Notifications
You must be signed in to change notification settings - Fork 519
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 #282 from chewbum/branch-addMeeting-diagram
Add addMeeting diagram
- Loading branch information
Showing
5 changed files
with
143 additions
and
15 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,24 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User executes AddMeeting command; | ||
|
||
if () then ([Invalid parameters]) | ||
-Error: Invalid command format | ||
stop | ||
else ([Valid parameters]) | ||
if () then ([Duplicate meeting]) | ||
-Error: This meeting either already exists in the address book or you are already booked for this timing | ||
stop | ||
else ([Meeting not duplicate]) | ||
:Add new meeting to client's meeting list; | ||
:Add new meeting to UniqueMeetingList; | ||
:Commit changes to AddressBook; | ||
:Save AddressBook state; | ||
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,39 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:Create AddMeetingCommandParser object; | ||
|
||
if () then ([clientIndex not present]) | ||
:Throw ParseException; | ||
stop | ||
else ([clientIndex present]) | ||
if () then ([clientIndex not valid]) | ||
:Throw ParseException; | ||
stop | ||
else ([clientIndex valid]) | ||
:Parse ClientIndex; | ||
if () then ([datetime not present]) | ||
:Throw ParseException; | ||
stop | ||
else ([datetime present]) | ||
:Parse DateTime; | ||
if () then ([datetime not valid]) | ||
:Throw ParseException; | ||
stop | ||
else ([datetime valid]) | ||
:Parse Description; | ||
if () then ([description not present]) | ||
:Throw ParseException; | ||
stop | ||
else ([description present]) | ||
if () then ([description not valid]) | ||
:Throw ParseException; | ||
stop | ||
else ([description valid]) | ||
:Create AddMeetingCommand object; | ||
stop | ||
|
||
endif | ||
@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.