Classes
Members
# static constant exports.AcademicYearInstances
Provides the singleton instance of this class to all other entities.
# static constant exports.buildCourseSlugName
Creates the course name from the slug. Course names have department in all caps.
# static constant exports.buildSimpleName
Builds the Name for a simple planChoice. Will have commas replaced by ' or '.
# static constant exports.complexChoiceToArray
Converts a complex choice into an array of the slugs that make up the choice. Note: This may not be enough to solve the generate plan problem.
# static constant exports.getDepartment
Returns the department from a course slug.
# static constant exports.getDepartments
Returns an array of the departments in the plan choice.
# static constant exports.getStudentsCurrentAcademicTermNumber
Returns the student's current academicTerm number (i.e. which academicTerm are they currently in.)
# static constant exports.getStudentTerms
Returns an array of the academicTermIDs that the student has taken or is planning to take courses or opportunities in.
# static constant exports.isComplexChoice
Returns true if the plan choice includes a sub-choice (e.g. '(ics_313,ics_331),ics_355-1' )
# static constant exports.isSimpleChoice
Returns true if the plan choice is a simple choice, just individual slugs separated by commas.
# static constant exports.isSingleChoice
Returns true if the planChoice is a single choice.
# static constant exports.isXXChoice
Returns true if the planChoice is a 300+ or 400+.
# static constant exports.PlanChoices
Provides the singleton instance of this class to all other entities.
# static constant exports.planIndexOf
Returns the index of the getCourseSlug in the array of plan choices.
# static constant exports.satisfiesPlanChoice
Returns true if the courseSlug satisfies the plan choice.
# static constant exports.stripCounter
Strips of the counter for the plan choice. The counter is used in academic plans to keep track of how many choices there are (e.g. five ics_400+ in the B.S. degree).
Methods
# static satisfiesSinglePlanChoice(planChoice, courseSlug) → {*}
Returns true if the getCourseSlug satisfies the planChoice.
Parameters:
Name | Type | Description |
---|---|---|
planChoice |
a plan choice. |
|
courseSlug |
a course's slug. |