org.openurp.edu.program.plan.model.CoursePlan.scala Maven / Gradle / Ivy
The newest version!
/*
* OpenURP, Agile University Resource Planning Solution
*
* Copyright (c) 2014-2015, OpenURP Software.
*
* OpenURP is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* OpenURP is distributed in the hope that it will be useful.
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with OpenURP. If not, see .
*/
package org.openurp.edu.program.plan.model
import org.beangle.data.model.{ LongIdEntity, TemporalOn }
import org.openurp.edu.base.States
import org.openurp.edu.base.code.model.CourseType
/**
* 课程方案
* 1)年级 2)培养层次 3)学分要求 4)课程组
*
* @composed 1 has * CourseGroup
* @depend - - - Degree
* @author chaostone
* @since 2009
*/
trait CoursePlan extends LongIdEntity with Cloneable with TemporalOn {
/**
* 获得总学分
*/
def credits: Float
/**
* 获得计划课程组
*/
def groups: Seq[CourseGroup]
/**
* 查询指定类型的组
*/
def group(courseType: CourseType): CourseGroup
/**
* 获得顶级课程组
*/
def tops: Seq[CourseGroup]
/**
* 这个计划的学期数
*/
def terms: Short
def state: States.State
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy