-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update DG #217
Update DG #217
Conversation
docs/DeveloperGuide.md
Outdated
* Step 7. The `execute` method in `editCommand` also iterates through the `ObservableList<Appointments>` and retrieves all appointments that have the person to be edited, and calls the `setDoctorNric` or `setPatientNric` methods to update all relevant appointments related to the patient or doctor. | ||
* Step 8. Success message gets printed onto the results display to notify user. | ||
|
||
The sequence diagram below closely describes the interaction between the various components during the execution of the `DeleteCommand`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to editCommand
docs/DeveloperGuide.md
Outdated
|
||
### Edit `Appointment` | ||
Edits an `Appointment` entry by indicating their `Index`. | ||
This command is implemented through the `EditAppointmentCommand` class which extend the `Command` class. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extends
docs/DeveloperGuide.md
Outdated
|
||
<img src="images/EditAppointmentActivityDiagram.png" width="800" /> | ||
|
||
* Step 4. The `parse` command in `editAppointmentCommandParser` return an instance of `editAppointmentCommand`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returns
docs/DeveloperGuide.md
Outdated
* Step 6. The `execute` method in `editAppointmentCommand` executes and calls `setAppointment` in model to set an updated appointment into the system. | ||
* Step 7. Success message gets printed onto the results display to notify user. | ||
|
||
The sequence diagram below closely describes the interaction between the various components during the execution of the `DeleteAppointmentCommand`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EditAppointmentCommand
docs/DeveloperGuide.md
Outdated
Alternative implementation for consideration | ||
1. Since both classes exhibit similarities in both code structure and behaviour, we might consider creating a generic class distinguished between `Person` and `Appointment` via enums to handle edits. | ||
2. This will centralise the behaviours, and reduce the amount of code needed to perform the edit function. | ||
3. A further extension is to do so with all other overlapping functionalities, such as `add` or `delete`, however we leave that possibility for future discussion and refinement. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation before 3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing
No description provided.