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. courses
A list of courses the student is registered under or on waitlist for.protected static java.util.HashMap<java.lang.String,Course>
Database. COURSES
AHashmap<String, Course>
that stores allCourse
s and its contained information.Methods in MySTARS that return Course Modifier and Type Method Description Course
Student. getCourse(java.lang.String courseCode)
Returns aCourse
object 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 Course
Student. removeCourse(java.lang.String courseCode)
Directly removes aCourse
from the courses Hashmap.Course
Course. simpleCopy(CourseStatus status, CourseIndex courseIndex)
Make a simple copy of the course to be stored under theStudent
object.Methods in MySTARS with parameters of type Course Modifier and Type Method Description CourseStatus
Student. planCourse(Course course, CourseIndex courseIndex)
AddsCourse
s to the Student's plan.static void
CourseManager. printCourseDetails(Course course)
Prints the full details of a course.static void
CourseManager. printIndexList(Course course, boolean printVacancies)
Prints a list ofCourseIndex
for a particularCourse
with the option to print the number of vacanices.static void
CourseManager. printStudentListByCourse(Course course, boolean sorted)
Prints a list of students in a givenCourse
with the option to have the list sorted.protected void
Student. setCourse(Course course)
Directly adds aCourse
to the Hashmap.