forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'AY2324S1-CS2103T-F08-2:master' into master
- Loading branch information
Showing
10 changed files
with
241 additions
and
23 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,19 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User executes command; | ||
:AddressBookParser parses command; | ||
|
||
'Since the beta syntax does not support placing the condition outside the | ||
'diamond we place it as the true branch instead. | ||
|
||
if () then ([valid addclient command string]) | ||
:Create new client; | ||
:Add client to persons in AddressBook; | ||
stop | ||
else ([else]) | ||
:Display error message; | ||
stop | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,50 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant "u:AddClientCommand" as AddClientCommand LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":AddressBook" as AddressBook MODEL_COLOR | ||
end box | ||
[-> LogicManager : execute(addclient n/...) | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand(addclient n/...) | ||
activate AddressBookParser | ||
|
||
create AddClientCommand | ||
AddressBookParser -> AddClientCommand | ||
activate AddClientCommand | ||
|
||
AddClientCommand --> AddressBookParser | ||
deactivate AddClientCommand | ||
|
||
AddressBookParser --> LogicManager : u | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> AddClientCommand : execute() | ||
activate AddClientCommand | ||
|
||
AddClientCommand -> Model : addClient() | ||
activate Model | ||
|
||
Model -> AddressBook : addClient() | ||
activate AddressBook | ||
|
||
Model --> AddClientCommand | ||
deactivate Model | ||
|
||
AddClientCommand --> LogicManager : result | ||
deactivate AddClientCommand | ||
AddClientCommand -[hidden]-> LogicManager : result | ||
destroy AddClientCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,20 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User executes addmeeting command; | ||
:AddressBookParser parses command; | ||
|
||
'Since the beta syntax does not support placing the condition outside the | ||
'diamond we place it as the true branch instead. | ||
|
||
if () then ([valid addmeeting command string]) | ||
:Finds Person in AddressBook to update; | ||
:Creates updatedPerson with new meeting added; | ||
:Set Person to updatedPerson in AddressBook; | ||
stop | ||
else ([else]) | ||
:Display error message; | ||
stop | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,64 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant "u:AddMeetingTime" as AddMeetingTime LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
participant ":AddressBook" as AddressBook MODEL_COLOR | ||
participant "updatedPerson:Person" as Person MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute(addmeeting ...) | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand(addmeeting ...) | ||
activate AddressBookParser | ||
|
||
create AddMeetingTime | ||
AddressBookParser -> AddMeetingTime | ||
activate AddMeetingTime | ||
|
||
AddMeetingTime --> AddressBookParser | ||
deactivate AddMeetingTime | ||
|
||
AddressBookParser --> LogicManager : u | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> AddMeetingTime : execute() | ||
activate AddMeetingTime | ||
|
||
AddMeetingTime -> Model : addMeeting() | ||
activate Model | ||
|
||
Model -> AddressBook : addMeeting() | ||
activate AddressBook | ||
|
||
create Person | ||
AddressBook -> Person | ||
activate Person | ||
|
||
Person --> AddressBook | ||
deactivate Person | ||
|
||
AddressBook --> AddressBook : setPerson(personToUpdate, updatedPerson) | ||
AddressBook --> Model | ||
deactivate AddressBook | ||
|
||
Model --> AddMeetingTime | ||
deactivate Model | ||
|
||
|
||
AddMeetingTime --> LogicManager : result | ||
deactivate AddMeetingTime | ||
AddMeetingTime -[hidden]-> LogicManager : result | ||
destroy AddMeetingTime | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.