course

class course.course(name: str, offerTimes=[], prereqs=[], completed=False, importance=0)[source]

The course class represents a singular course and its pertinent information, such as offer times, prerequisites, and if it has been completed.

Parameters
  • name – The name of the course (with no spaces)

  • offerTimes – A list containing strings of which terms the course is offered (ex. [‘Sp’,’Su’])

  • prereqs – A list of course names that are prerequisites

  • completed – Boolean of if the course is Completed

  • importance – integer value of importance of course (how many classes require this class, calculated later)

Returns

None

printCourse()[source]

Prints course information :param: None :returns: None

printPrereqs()[source]

Prints prereqs :param: None :returns: None

setCompleted(student)[source]

Sets course as completed :param student: student object from student.py :returns: None

setImportance(value)[source]

Sets importance of course :param value: Integer value # classes that require this course :returns: None

takeCourseBool(student, term)[source]
Parameters
  • student – student object from student.py

  • term – term the course wants to be taken (ex ‘Sp’)

Returns

Whether the student can take this course that term