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

org.openurp.edu.course.model.SyllabusExperiment.scala Maven / Gradle / Ivy

/*
 * Copyright (C) 2014, The OpenURP Software.
 *
 * This program 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.
 *
 * 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 Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see .
 */

package org.openurp.edu.course.model

import org.beangle.commons.lang.annotation.beta
import org.beangle.data.model.LongId
import org.beangle.data.model.pojo.Named
import org.openurp.base.edu.model.Experiment
import org.openurp.code.edu.model.ExperimentType

/** 课程大纲中的实验
 */
@beta
class SyllabusExperiment extends LongId, Named {

  var syllabus: Syllabus = _

  /** 序号(从1开始) */
  var idx: Int = _

  /** 实验 */
  var experiment: Option[Experiment] = None

  /** 是否在线实验 */
  var online: Boolean = _

  /** 学时 */
  var creditHours: Float = _

  /** 实验类型 */
  var experimentType: ExperimentType = _

  def this(syllabus: Syllabus, idx: Int, name: String, creditHours: Float, experimentType: ExperimentType, online: Boolean) = {
    this()
    this.syllabus = syllabus
    this.idx = idx
    this.name = name
    this.creditHours = creditHours
    this.experimentType = experimentType
    this.online = online
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy