|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RegController
Each lab that utilizes the GUI will use an appropriate controller object that implements the following interface.
Method Summary | |
---|---|
void |
doDrop(java.lang.String courseId,
java.lang.String studentName)
Drop a specified student from a specified course |
void |
doEnroll(java.lang.String courseId,
java.lang.String studentName)
Enroll specified student in specified course |
void |
doGrade(java.lang.String courseId,
java.lang.String studentName,
java.lang.String grade)
Set grade for specified student in specified course |
void |
doReportAllCourses()
Print a report for all courses |
void |
doReportAllStudents()
Print a report for all students |
void |
doReportCourse(java.lang.String courseId)
Print a report for a specific course |
void |
doReportStudent(java.lang.String name)
Print a report for a specific student |
java.lang.String[] |
getCourseIds()
Get the course id's of all courses |
java.lang.String[] |
getStudentNames()
Get the names of all students |
Method Detail |
---|
java.lang.String[] getCourseIds()
java.lang.String[] getStudentNames()
void doEnroll(java.lang.String courseId, java.lang.String studentName) throws java.lang.IllegalArgumentException
courseId
- id of the coursestudentName
- the name of the student
java.lang.IllegalArgumentException
- if the specified student cannot
be enrolled in the specified course - message explains whyvoid doDrop(java.lang.String courseId, java.lang.String studentName) throws java.lang.IllegalArgumentException
courseId
- id of the coursestudentName
- the name of the student
java.lang.IllegalArgumentException
- if the specified student cannot
be dropped from the specified course - message explains whyvoid doGrade(java.lang.String courseId, java.lang.String studentName, java.lang.String grade) throws java.lang.IllegalArgumentException
courseId
- id of the coursestudentName
- the name of the studentgrade
- the grade to assign
java.lang.IllegalArgumentException
- if the specified student cannot
be given a grade for the specified course - message explains whyvoid doReportAllCourses()
void doReportCourse(java.lang.String courseId) throws java.lang.IllegalArgumentException
courseId
- the ID of the course to print a report for
java.lang.IllegalArgumentException
- if no such course existsvoid doReportAllStudents()
void doReportStudent(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the nameof the student to print a report for
java.lang.IllegalArgumentException
- if no such student exists
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |