All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openurp.edu.program.plan.model.CourseGroup.scala Maven / Gradle / Ivy

There is a newer version: 0.18.1
Show newest version
/*
 * OpenURP, Agile University Resource Planning Solution.
 *
 * Copyright © 2014, The OpenURP Software.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */
package org.openurp.edu.program.plan.model

import org.beangle.data.model.LongIdEntity
import org.beangle.data.model.pojo.Named
import org.openurp.edu.base.code.model.CourseType

/**
 * 课程设置中的课程组. 

  • 1)对应计划
  • 2)课程类型
  • 3)要求学分
  • 4)是否必修课
  • *
  • 5)父组
  • 6)子组集合
  • 7)组内所有的课程
  • 8)备注
  • * * @author chaostone */ trait CourseGroup extends LongIdEntity with Ordered[CourseGroup] { /** * 获得课程方案 */ def plan: CoursePlan /** * 获得上级组 */ def parent: Option[CourseGroup] /** * 获得子节点集合. */ def children: Seq[CourseGroup] /** * 要求完成的课程组数量 * (-1表示全部完成) */ def subCount: Short /** * 获得课程类别. */ def courseType: CourseType /** * 要求组内要求总学分 */ def credits: Float /**组名*/ def name: String /** * 获得组内要求门数 */ def courseCount: Short def planCourses: Seq[PlanCourse] /** * 判断是否必修组
    * 如果组内没有课程和子组,那么就是选修
    * 如果组内有课程没子组,那么所有课程都是必修才是必修,否则就是选修
    * 如果组内无课程有子组,那么组关系必须是AND才是必修,否则就是选修
    * 如果组内有课程有子组,那么所有课程都是必修且关系AND才是必修,否则就是选修 */ def compulsory: Boolean /** * 获得备注. */ def remark: Option[String] /** * 获得每学期学分 */ def termCredits: String def indexno: String }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy