forked from AY2324S2-CS2103T-T15-1/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 pull request AY2324S2-CS2103T-T15-1#214 from officialchengyud/b…
…ranch-update-DG Update DG with add and delete commands
- Loading branch information
Showing
11 changed files
with
161 additions
and
136 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 was deleted.
Oops, something went wrong.
This file was deleted.
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,65 @@ | ||
@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 ":DeleteAppointmentCommandParser" as DeleteAppointmentCommandParser LOGIC_COLOR | ||
participant "e:DeleteAppointmentCommand" as DeleteAppointmentCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("deleteappt i/...") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("deleteappt i/...") | ||
activate AddressBookParser | ||
|
||
create DeleteAppointmentCommandParser | ||
AddressBookParser -> DeleteAppointmentCommandParser | ||
activate DeleteAppointmentCommandParser | ||
|
||
create DeleteAppointmentCommand | ||
DeleteAppointmentCommandParser -> DeleteAppointmentCommand : : parse("deleteappt i/...") | ||
activate DeleteAppointmentCommand | ||
|
||
DeleteAppointmentCommand --> DeleteAppointmentCommandParser | ||
deactivate DeleteAppointmentCommand | ||
|
||
DeleteAppointmentCommandParser --> AddressBookParser | ||
deactivate DeleteAppointmentCommandParser | ||
|
||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
DeleteAppointmentCommandParser -[hidden]-> AddressBookParser | ||
destroy DeleteAppointmentCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> DeleteAppointmentCommand : execute() | ||
activate DeleteAppointmentCommand | ||
|
||
DeleteAppointmentCommand -> Model : deleteAppointment(toRemove) | ||
activate Model | ||
|
||
Model --> DeleteAppointmentCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
DeleteAppointmentCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> DeleteAppointmentCommand : result | ||
deactivate CommandResult | ||
|
||
DeleteAppointmentCommand --> LogicManager : result | ||
deactivate DeleteAppointmentCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@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,65 @@ | ||
@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 ":DeleteCommandParser" as DeleteCommandParser LOGIC_COLOR | ||
participant "e:DeleteCommand" as DeleteCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
[-> LogicManager : execute("delete i/...") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("delete i/...") | ||
activate AddressBookParser | ||
|
||
create DeleteCommandParser | ||
AddressBookParser -> DeleteCommandParser | ||
activate DeleteCommandParser | ||
|
||
create DeleteCommand | ||
DeleteCommandParser -> DeleteCommand : : parse("delete i/...") | ||
activate DeleteCommand | ||
|
||
DeleteCommand --> DeleteCommandParser | ||
deactivate DeleteCommand | ||
|
||
DeleteCommandParser --> AddressBookParser | ||
deactivate DeleteCommandParser | ||
|
||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
DeleteCommandParser -[hidden]-> AddressBookParser | ||
destroy DeleteCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> DeleteCommand : execute() | ||
activate DeleteCommand | ||
|
||
DeleteCommand -> Model : removePerson(toRemove) | ||
activate Model | ||
|
||
Model --> DeleteCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
DeleteCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> DeleteCommand : result | ||
deactivate CommandResult | ||
|
||
DeleteCommand --> LogicManager : result | ||
deactivate DeleteCommand | ||
|
||
[<--LogicManager | ||
deactivate LogicManager | ||
@enduml |
Binary file not shown.
Binary file not shown.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.