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 branch 'master' into branch-updateUserGuide
# Conflicts: # docs/UserGuide.md
- Loading branch information
Showing
72 changed files
with
799 additions
and
420 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,26 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
|
||
start | ||
:User enters command to edit appointment; | ||
|
||
if () then ([command is invalid]) | ||
:Show error message\nfor invalid command; | ||
else ([else]) | ||
if () then ([missing required fields]) | ||
:Show error message\nfor missing required fields; | ||
else ([else]) | ||
if () then ([Invalid appointment index detected]) | ||
:Show error message\nindicating invalid Appointment index; | ||
else ([else]) | ||
:edit appointment\nin the appointment list; | ||
:Update the 'appointment' panel\nin the GUI; | ||
:Show success message\nwith edited appointment information; | ||
endif; | ||
endif | ||
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 ":EditAppointmentCommandParser" as EditAppointmentCommandParser LOGIC_COLOR | ||
participant "e:EditAppointmentCommand" as EditAppointmentCommand 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("editappt i/...") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("editappt i/...") | ||
activate AddressBookParser | ||
|
||
create EditAppointmentCommandParser | ||
AddressBookParser -> EditAppointmentCommandParser | ||
activate EditAppointmentCommandParser | ||
|
||
create EditAppointmentCommand | ||
EditAppointmentCommandParser -> EditAppointmentCommand : : parse("editappt i/...") | ||
activate EditAppointmentCommand | ||
|
||
EditAppointmentCommand --> EditAppointmentCommandParser | ||
deactivate EditAppointmentCommand | ||
|
||
EditAppointmentCommandParser --> AddressBookParser | ||
deactivate EditAppointmentCommandParser | ||
|
||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
EditAppointmentCommandParser -[hidden]-> AddressBookParser | ||
destroy EditAppointmentCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> EditAppointmentCommand : execute() | ||
activate EditAppointmentCommand | ||
|
||
EditAppointmentCommand -> Model : setAppointment(toEdit) | ||
activate Model | ||
|
||
Model --> EditAppointmentCommand | ||
deactivate Model | ||
|
||
create CommandResult | ||
EditAppointmentCommand -> CommandResult | ||
activate CommandResult | ||
|
||
CommandResult --> EditAppointmentCommand : result | ||
deactivate CommandResult | ||
|
||
EditAppointmentCommand --> LogicManager : result | ||
deactivate EditAppointmentCommand | ||
|
||
[<--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,26 @@ | ||
@startuml | ||
skin rose | ||
skinparam ActivityFontSize 15 | ||
skinparam ArrowFontSize 12 | ||
|
||
start | ||
:User enters command to edit doctor or patient; | ||
|
||
if () then ([command is invalid]) | ||
:Show error message\nfor invalid command; | ||
else ([else]) | ||
if () then ([missing required fields]) | ||
:Show error message\nfor missing required fields; | ||
else ([else]) | ||
if () then ([Invalid person index detected]) | ||
:Show error message\nindicating invalid Person index; | ||
else ([else]) | ||
:Edit patient/doctor\nfrom the persons list\nalso updates any appointments\nassociated with the edited patient/doctor; | ||
:Update the 'person' panel\nand appointments panel\n in the GUI; | ||
:Show success message\nwith edited doctor/patient information; | ||
endif; | ||
endif | ||
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 ":EditCommandParser" as EditCommandParser LOGIC_COLOR | ||
participant "e:EditCommand" as EditCommand 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("edit i/...") | ||
activate LogicManager | ||
|
||
LogicManager -> AddressBookParser : parseCommand("edit i/...") | ||
activate AddressBookParser | ||
|
||
create EditCommandParser | ||
AddressBookParser -> EditCommandParser | ||
activate EditCommandParser | ||
|
||
create EditCommand | ||
EditCommandParser -> EditCommand : : parse("edit i/...") | ||
activate EditCommand | ||
|
||
EditCommand --> EditCommandParser | ||
deactivate EditCommand | ||
|
||
EditCommandParser --> AddressBookParser | ||
deactivate EditCommandParser | ||
|
||
'Hidden arrow to position the destroy marker below the end of the activation bar. | ||
EditCommandParser -[hidden]-> AddressBookParser | ||
destroy EditCommandParser | ||
|
||
AddressBookParser --> LogicManager | ||
deactivate AddressBookParser | ||
|
||
LogicManager -> EditCommand : execute() | ||
activate EditCommand | ||
|
||
EditCommand -> Model : setPerson(toEdit) | ||
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 |
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.
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.
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.