Uses of Class
MySTARS.Student
-
Uses of Student in MySTARS
Fields in MySTARS with type parameters of type Student Modifier and Type Field Description private java.util.HashMap<java.lang.String,Student>
CourseIndex. enrolledStudents
Hashmap of currently enrolled students.private java.util.HashMap<java.lang.String,Student>
CourseIndex. waitlistedStudents
Hashmap of currently waitlisted students.Methods in MySTARS that return Student Modifier and Type Method Description protected Student
CourseIndex. removeStudent(java.lang.String username)
Directly removes aStudent
from the CourseIndex.Student
Student. simpleCopy()
Creates a copy of this student object with minimal information.private Student
SwapIndexView. verifySecondUser(java.lang.String courseCode)
For swapping index with a peer, this method checks if peer is a valid user that is registered for the relevant course.Methods in MySTARS that return types with arguments of type Student Modifier and Type Method Description java.util.ArrayList<Student>
CourseIndex. getStudents()
Returns an array of students currently enrolled in the index.java.util.ArrayList<Student>
CourseIndex. getWaitlistStudents()
Return an array ofStudent
s that are on Waitlist.Methods in MySTARS with parameters of type Student Modifier and Type Method Description protected void
CourseIndex. addStudent(Student student)
Directly adds aStudent
to the CourseIndex and bypasses all checks.void
CourseIndex. addToWaitlist(Student student)
Add student to the index waitlist.int
Student. compareTo(Student o)
Compares this student with the specified student for order.void
CourseIndex. enrollStudent(Student student)
Enrolls a specified student object into the index.static void
CourseManager. printCourseList(CourseStatus status, Student student)
Prints a list of courses based on theCourseStatus
from aStudent
's courses.protected static void
PrintTimeTableView. printInformation(CourseStatus courseStatus, Student currentUser)
Displays all the relevant information for courses that are of a particularCourseStatus
for aStudent
.static void
Helper. sendMailNotification(Student receipient, java.lang.String course)
A method that sends an email from the Administrative Gmail Account to the user if their course has been registered.void
CourseIndex. unenrollStudent(Student student)
Removes student from the enrolled register.