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.
Merge branch 'master' of https://github.com/AY2324S1-CS2103T-W16-1/tp …
…into modify-ppp
- Loading branch information
Showing
11 changed files
with
343 additions
and
110 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,23 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User executes add event command; | ||
|
||
'Since the beta syntax does not support placing the condition outside the | ||
'diamond we place it as the true branch instead. | ||
|
||
if () then ([person exists]) | ||
if () then ([no duplicates or clashes]) | ||
:Add a new event to the person in the address book; | ||
:Returns result message with | ||
the event that has been added; | ||
else ([else]) | ||
:Throw CommandException; | ||
endif | ||
else ([else]) | ||
:Throw CommandException; | ||
endif | ||
stop | ||
@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,24 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
start | ||
:User executes delete event command; | ||
|
||
'Since the beta syntax does not support placing the condition outside the | ||
'diamond we place it as the true branch instead. | ||
|
||
if () then ([person exists]) | ||
if () then ([event exists]) | ||
:Delete event from the person | ||
in the address book; | ||
:Returns result message with | ||
the event that has been deleted; | ||
else ([else]) | ||
:Throw CommandException; | ||
endif | ||
else ([else]) | ||
:Throw CommandException; | ||
endif | ||
stop | ||
@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,87 @@ | ||
@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 ":AddCommandParser" as AddCommandParser LOGIC_COLOR | ||
participant ":AddEventCommandParser" as AddEventCommandParser LOGIC_COLOR | ||
participant ":AddEventCommand" as AddEventCommand LOGIC_COLOR | ||
participant "commandResult:CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute(commandText) | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand(commandText) | ||
activate AddressBookParser | ||
|
||
create AddCommandParser | ||
AddressBookParser -> AddCommandParser | ||
activate AddCommandParser | ||
|
||
AddCommandParser --> AddressBookParser | ||
deactivate AddCommandParser | ||
|
||
AddressBookParser -> AddCommandParser : parse(commandText) | ||
activate AddCommandParser | ||
|
||
create AddEventCommandParser | ||
AddCommandParser -> AddEventCommandParser | ||
activate AddEventCommandParser | ||
|
||
AddEventCommandParser -> AddCommandParser | ||
deactivate AddEventCommandParser | ||
|
||
AddCommandParser -> AddEventCommandParser : parse(commandText) | ||
activate AddEventCommandParser | ||
|
||
create AddEventCommand | ||
AddEventCommandParser -> AddEventCommand | ||
activate AddEventCommand | ||
|
||
AddEventCommand --> AddEventCommandParser | ||
deactivate AddEventCommand | ||
|
||
AddEventCommandParser --> AddCommandParser | ||
deactivate AddEventCommandParser | ||
AddEventCommandParser -[hidden]-> AddCommandParser | ||
destroy AddEventCommandParser | ||
|
||
AddCommandParser --> AddressBookParser | ||
deactivate AddCommandParser | ||
AddCommandParser -[hidden]-> AddressBookParser | ||
destroy AddCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> AddEventCommand : execute() | ||
activate AddEventCommand | ||
|
||
AddEventCommand -> Model: findPersonByUserFriendlyId(contactId) | ||
activate Model | ||
|
||
Model -> AddEventCommand: person | ||
deactivate Model | ||
|
||
create CommandResult | ||
AddEventCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> AddEventCommand : commandResult | ||
deactivate CommandResult | ||
|
||
AddEventCommand --> LogicManager : commandResult | ||
deactivate AddEventCommand | ||
AddEventCommand -[hidden]-> LogicManager | ||
destroy AddEventCommand | ||
|
||
[<--LogicManager : commandResult | ||
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
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
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