Skip to content

Commit bed9cf7

Browse files
committed
MInor fixes. Fixes #55
1 parent bdd7603 commit bed9cf7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/DeveloperGuide.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,13 +536,14 @@ A `Schedule` is a list of `Lessons`. A `Lesson` has a `Student` attribute, a `Da
536536
----
537537
public void addLesson(Student studentToAddLesson, Day day, Time startTime, Time endTime)
538538
throws DuplicateLessonException, StudentNotFoundException, InvalidLessonTimeSlotException {
539-
requireAllNonNull(studentToAddLesson, day, startTime, endTime);
539+
//Check for Duplicate Lesson, StudentNotFound, invalid input ime
540540
541-
Lesson newLesson = new Lesson(studentToAddLesson, day, startTime, endTime);
542541
schedule.addLesson(newLesson);
543542
}
544543
----
545544

545+
The student will be selected by the Index of the last seen list of students. A new `Lesson` will now be added for that student at the specific `Day`, `START_TIME` and `END_TIME`.
546+
546547
[NOTE]
547548
If you have a future implementation that requires the addition of a new attribute in the `Schedule` class, you must take note of updating the `Model.addLesson(Student, Day, Time START_TIME, Time END_TIME)` method to reflect the new attribute.
548549

0 commit comments

Comments
 (0)