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 pull request #235 from tanveersingh10/master
Update UG and DG
- Loading branch information
Showing
8 changed files
with
159 additions
and
52 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
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,92 @@ | ||
@startuml | ||
!include style.puml | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR | ||
participant ":EditCommandParser" as EditCommandParser LOGIC_COLOR | ||
participant "e:EditCommand" as EditCommand LOGIC_COLOR | ||
participant ":CommandResult" as CommandResult LOGIC_COLOR | ||
participant ":EditPersonDescriptor" as EditPersonDescriptor USER_COLOR | ||
end box | ||
|
||
box Model MODEL_COLOR_T1 | ||
participant ":Model" as Model MODEL_COLOR | ||
end box | ||
|
||
|
||
[-> LogicManager : execute("edit args") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("edit args") | ||
activate AddressBookParser | ||
|
||
create EditCommandParser | ||
AddressBookParser -> EditCommandParser | ||
activate EditCommandParser | ||
|
||
EditCommandParser --> AddressBookParser | ||
deactivate EditCommandParser | ||
|
||
AddressBookParser -> EditCommandParser : parse("args") | ||
|
||
activate EditCommandParser | ||
|
||
create EditPersonDescriptor | ||
EditCommandParser -> EditPersonDescriptor : new | ||
activate EditPersonDescriptor | ||
|
||
EditPersonDescriptor --> EditCommandParser : editPersonDescriptor | ||
deactivate EditPersonDescriptor | ||
|
||
create EditCommand | ||
EditCommandParser -> EditCommand : EditCommand(nric, editPersonDescriptor) | ||
activate EditCommand | ||
|
||
EditCommand --> EditCommandParser : e | ||
deactivate EditCommand | ||
|
||
EditCommandParser --> AddressBookParser : e | ||
deactivate EditCommandParser | ||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
EditCommandParser -[hidden]-> AddressBookParser | ||
destroy EditCommandParser | ||
|
||
AddressBookParser --> LogicManager : e | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> EditCommand : execute() | ||
activate EditCommand | ||
|
||
EditCommand -> Model : getFilteredDoctorList() | ||
activate Model | ||
|
||
Model -> EditCommand : filteredDoctorList | ||
deactivate Model | ||
|
||
EditCommand -> Model : getFilteredPatientList() | ||
|
||
activate Model | ||
Model -> EditCommand : filteredPatientList | ||
deactivate Model | ||
|
||
EditCommand -> Model : setPerson(personToEdit, editedPerson) | ||
activate Model | ||
Model -> EditCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
EditCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> EditCommand : result | ||
deactivate CommandResult | ||
|
||
EditCommand --> LogicManager : result | ||
deactivate EditCommand | ||
|
||
[<--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
Oops, something went wrong.