term

term.sortClasses(possible_courses)[source]

Function used in ‘autoBuildTerm()’ to sort courses based on importance :param possible_courses: List of course objects :returns: Sorted list based on importance

class term.term(name: str, num_classes=5, courses={})[source]

term class representing each term (ex. ‘Sp’ or ‘Su’) that a student may want to take classes

Parameters
  • name – The name of the term (ex ‘Sp’)

  • num_classes – The amount of classes wanted to be taken that term

  • courses – Dictionary containing courses, with keys set to the name of the course (ex. courses[‘SENG265’])

Returns

None

addClasses(courses, student)[source]

Overwrites courses in term and sets to the new courses passed in argument :param courses: Dictionary containing course objects :param student: Student object from student.py :returns: None

autoBuildTerm(student)[source]

Builds a term of classes from a student object with the highest importance courses as priority. :param student: Student object from student.py :returns: None

printCourses()[source]

Prints courses from the term :param: None :returns: None

updateCourses(student)[source]

After the term is built, this updates the student object to set the Courses as completed. :param student: Student object from student.py :returns: None