Uses of Class
MySTARS.Course
-
Uses of Course in MySTARS
Fields in MySTARS with type parameters of type Course Modifier and Type Field Description private java.util.HashMap<java.lang.String,Course>Student. coursesA list of courses the student is registered under or on waitlist for.protected static java.util.HashMap<java.lang.String,Course>Database. COURSESAHashmap<String, Course>that stores allCourses and its contained information.Methods in MySTARS that return Course Modifier and Type Method Description CourseStudent. getCourse(java.lang.String courseCode)Returns aCourseobject that the Student has registered for.Course[]Student. getCourses(CourseStatus courseStatus)Returns a list of the student's courses, based on the desired course status.protected CourseStudent. removeCourse(java.lang.String courseCode)Directly removes aCoursefrom the courses Hashmap.CourseCourse. simpleCopy(CourseStatus status, CourseIndex courseIndex)Make a simple copy of the course to be stored under theStudentobject.Methods in MySTARS with parameters of type Course Modifier and Type Method Description CourseStatusStudent. planCourse(Course course, CourseIndex courseIndex)AddsCourses to the Student's plan.static voidCourseManager. printCourseDetails(Course course)Prints the full details of a course.static voidCourseManager. printIndexList(Course course, boolean printVacancies)Prints a list ofCourseIndexfor a particularCoursewith the option to print the number of vacanices.static voidCourseManager. printStudentListByCourse(Course course, boolean sorted)Prints a list of students in a givenCoursewith the option to have the list sorted.protected voidStudent. setCourse(Course course)Directly adds aCourseto the Hashmap.