forked from nus-cs2103-AY2324S2/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 #218 from Kappaccinoh/updateDG
Update DG for query related commands
- Loading branch information
Showing
15 changed files
with
291 additions
and
16 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,20 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
|
||
start | ||
:User enters command to query a person,\nthe person can be either a doctor or patient.; | ||
|
||
|
||
if () then ([missing required fields]) | ||
:Show error message\nfor missing required fields; | ||
else ([else]) | ||
:Search the person from person list; | ||
:Update the 'person' panel\nin the GUI to display the list; | ||
:Show success message\nwith found person(s) information; | ||
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,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 ":FindCommandParser" as FindCommandParser LOGIC_COLOR | ||
participant "e:FindCommand" as FindCommand 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("find ...") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("find ...") | ||
activate AddressBookParser | ||
|
||
create FindCommandParser | ||
AddressBookParser -> FindCommandParser | ||
activate FindCommandParser | ||
|
||
create FindCommand | ||
FindCommandParser -> FindCommand : : parse("find ...") | ||
activate FindCommand | ||
|
||
FindCommand --> FindCommandParser | ||
deactivate FindCommand | ||
|
||
FindCommandParser --> AddressBookParser | ||
deactivate FindCommandParser | ||
|
||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
FindCommandParser -[hidden]-> AddressBookParser | ||
destroy FindCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> FindCommand : execute() | ||
activate FindCommand | ||
|
||
FindCommand -> Model : find(person) | ||
activate Model | ||
|
||
Model --> FindCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
FindCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> FindCommand : result | ||
deactivate CommandResult | ||
|
||
FindCommand --> LogicManager : result | ||
deactivate FindCommand | ||
|
||
[<--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,20 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
|
||
start | ||
:User enters command to query doctor(s); | ||
|
||
|
||
if () then ([missing required fields]) | ||
:Show error message\nfor missing required fields; | ||
else ([else]) | ||
:Search doctor(s) from person list; | ||
:Update the 'person' panel\nin the GUI to display the list; | ||
:Show success message\nwith queried doctor(s) information; | ||
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,20 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
|
||
start | ||
:User enters command to query appointment with the associated doctor; | ||
|
||
|
||
if () then ([missing required fields]) | ||
:Show error message\nfor missing required fields; | ||
else ([else]) | ||
:Search Appointments(s) from person list; | ||
:Update the 'appointment' panel\nin the GUI to display the list; | ||
:Show success message\nwith queried appointment information; | ||
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,20 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
|
||
start | ||
:User enters command to query patient(s); | ||
|
||
|
||
if () then ([missing required fields]) | ||
:Show error message\nfor missing required fields; | ||
else ([else]) | ||
:Search patient(s) from person list; | ||
:Update the 'person' panel\nin the GUI to display the list; | ||
:Show success message\nwith queried patient(s) information; | ||
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,20 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
|
||
start | ||
:User enters command to query appointments with associated patient; | ||
|
||
|
||
if () then ([missing required fields]) | ||
:Show error message\nfor missing required fields; | ||
else ([else]) | ||
:Search Appointment(s) from appointment list; | ||
:Update the 'appointment' panel\nin the GUI to display the list; | ||
:Show success message\nwith queried appointment information; | ||
endif | ||
|
||
|
||
stop | ||
@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.
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.
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