CSC 217 Lab 11 Update and Test Faculty
The Faculty class represents an individual faculty record - including the FacultySchedule.
Add FacultySchedule State
Add a field of type FacultySchedule to Faculty.
The Faculty() constructor should construct FacultySchedule and pass in the Faculty id.
Add Faculty.getSchedule() Method
Add Faculty.getSchedule(), which returns the FacultySchedule.
Add Faculty.isOverloaded() Method
Add Faculty.isOverloaded(), which returns true if the number of scheduled courses is greater than the Faculty’s maxCourses.
Testing the New Functionality
Your FacultyScheduleTest tests will fail. That’s because you first have to update how Course and CourseRecordIO behave so that you can connect Courses and Faculty through FacultySchedule.
Javadoc your Code
Javadoc the Faculty class, state, and methods. For the overridden methods equals(), hashCode(), and toString(), remove the green comments and Javadoc them to describe how the methods work in Faculty. Do NOT delete the @Override annotation.
Run CheckStyle to ensure that your Javadoc has all elements.
Push to GitHub
Push your PackScheduler project to GitHub
- Add the unstaged changes to the index.
- Commit and push changes. Remember to use a meaningful commit message describing how you have changed the code.
Reminder: Staging and Pushing to GitHub
GitHub Resources:
Check Jenkins
Check your project on Jenkins to ensure that you are making progress.
Reminder: Interpreting Jenkins
Check the following items on Jenkins for your last build and use the results to estimate your grade: