Uses of Class
MySTARS.CourseIndex
-
Uses of CourseIndex in MySTARS
Fields in MySTARS with type parameters of type CourseIndex Modifier and Type Field Description private java.util.HashMap<java.lang.String,CourseIndex>
Course. courseIndices
Hashmap of all available indices in the course.Methods in MySTARS that return CourseIndex Modifier and Type Method Description CourseIndex
Course. getIndex(java.lang.String courseIndex)
Returns a CourseIndex object by taking the index number as a parameter.CourseIndex[]
Course. getIndices()
Returns an array of all indices registered under the Course.CourseIndex[]
Student. getIndices(CourseStatus courseStatus)
Returns a list of the student's course indices, based on the desired course status.CourseIndex
Course. removeIndex(java.lang.String courseIndex)
Directly removes a particularCourseIndex
to the current Course.CourseIndex
Student. removeIndex(java.lang.String courseCode, java.lang.String courseIndex)
Directly removes aCourseIndex
from aCourse
in the courses Hashmap.CourseIndex
CourseIndex. simpleCopy()
Creates a simple copy of this course index, with same parameters except for 0 vacancies.Methods in MySTARS with parameters of type CourseIndex Modifier and Type Method Description boolean
Student. addCourseFromWaitlist(CourseIndex courseIndex)
Registers the student from waitlist.void
Course. addIndex(CourseIndex courseIndex)
Directly adds a particularCourseIndex
to the current Course.CourseStatus
Student. planCourse(Course course, CourseIndex courseIndex)
AddsCourse
s to the Student's plan.static void
CourseManager. printLesson(CourseIndex index)
Prints a list ofLesson
for a givenCourseIndex
.static void
CourseManager. printStudentListByIndex(CourseIndex courseIndex, boolean sorted)
Prints a list of students in a givenCourseIndex
.void
Student. setIndex(java.lang.String courseCode, CourseIndex courseIndex)
Directly Adds aCourseIndex
to aCourse
in the courses Hashmap.Course
Course. simpleCopy(CourseStatus status, CourseIndex courseIndex)
Make a simple copy of the course to be stored under theStudent
object.Constructors in MySTARS with parameters of type CourseIndex Constructor Description Course(java.lang.String courseCode, java.lang.String courseName, AU acadUnits, java.lang.String description, java.lang.String school, CourseStatus courseStatus, CourseIndex courseIndex)
Constructor for course object, creates course with description, school, course status, and an initial course index.