plans

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Degree

type Degree struct {
	Id           PlanId           `json:"_id"`
	PlanType     PlanType         `json:"plan_type"`
	Name         PlanName         `json:"name"`
	Requirements PlanRequirements `json:"requirements"`
}

TODO: if no minors or options differ from this structure, we can change Plan to this and remove the interface

func (Degree) GetName

func (deg Degree) GetName() string

func (Degree) IsCompleted

func (deg Degree) IsCompleted(records *courses.CourseRecords) bool

type Plan

type Plan interface {
	IsCompleted(records *courses.CourseRecords) bool
	GetName() string
}

type PlanId

type PlanId string

type PlanName

type PlanName string

type PlanRequirements

type PlanRequirements courses.CourseRequirementRules

type PlanType

type PlanType string
const PlanTypeDegree PlanType = "degree"

type Plans

type Plans []*Plan

Jump to

Keyboard shortcuts

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