terms

package
v0.0.0-...-9d9a824 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Term

type Term struct {
	Name   TermName
	Id     TermId
	Season TermSeason
	Year   TermYear
}

func NewTerm

func NewTerm(name TermName, uwTermId int) Term

type TermId

type TermId int

type TermName

type TermName string

type TermRecord

type TermRecord struct {
	Term          Term
	Id            TermRecordId
	CourseRecords courses.CourseRecords
}

func NewTermRecord

func NewTermRecord(termName TermName, uwTermId int) *TermRecord

func (TermRecord) Copy

func (tr TermRecord) Copy() TermRecord

func (TermRecord) InvalidCourses

func (tr TermRecord) InvalidCourses(pastRecords courses.CourseRecords) courses.CourseRecords

Returns the courses whose pre-requisites are not satisfied

type TermRecordId

type TermRecordId string

type TermRecords

type TermRecords []*TermRecord

func (TermRecords) Copy

func (records TermRecords) Copy() TermRecords

type TermSeason

type TermSeason int
const (
	WINTER TermSeason = 1
	SPRING TermSeason = 5
	FALL   TermSeason = 9
)

type TermYear

type TermYear int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL