timelines

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timeline

type Timeline struct {
	Id          TimelineId
	Name        TimelineName
	TermRecords terms.TermRecords
	Plans       plans.Plans
}

func NewTimeline

func NewTimeline(name TimelineName, courseHistory terms.TermRecords) *Timeline

func (Timeline) AddTermRecord

func (t Timeline) AddTermRecord(tr *terms.TermRecord)

func (Timeline) Aggregate

func (t Timeline) Aggregate() *courses.CourseRecords

Flattens TermRecords and aggregates it into one CourseRecords

func (Timeline) IncompletePlans

func (t Timeline) IncompletePlans() plans.Plans

Checks if all declared plans in Plans are satisfied

func (Timeline) InvalidCourses

func (t Timeline) InvalidCourses() courses.CourseRecords

Returns the courses whose pre-requisites are not satisfied

type TimelineId

type TimelineId string

type TimelineName

type TimelineName string

type Timelines

type Timelines []*Timeline

Jump to

Keyboard shortcuts

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