类 Session

  • 所有已实现的接口:
    Serializable, Comparable<Session>, org.beangle.commons.entity.Entity<Long>

    @Entity(name="org.openurp.edu.clazz.model.Session")
    public class Session
    extends org.beangle.commons.entity.pojo.LongIdObject
    implements Comparable<Session>
    教学活动
    从以下版本开始:
    2005-11-22
    另请参阅:
    序列化表格
    • 字段详细资料

      • clazz

        @NotNull
        protected Clazz clazz
        教学任务
      • time

        protected WeekTime time
        上课时间
      • teachingNature

        @NotNull
        protected TeachingNature teachingNature
        授课性质
      • teachingMethod

        @NotNull
        protected TeachingMethod teachingMethod
        授课方式
    • 方法详细资料

      • getFirstActivityTime

        public Date getFirstActivityTime()
        第一次活动时间
        返回:
      • getLastActivityTime

        public Date getLastActivityTime()
        最后一次活动时间
        返回:
      • canMergerWith

        public boolean canMergerWith​(Session session)
        判断该教学活动的时间段能否与目标教学活动在[相邻时间段]上合并
        返回:
      • mergeWith

        public void mergeWith​(Session other)
        将两排课活动合并,前提是两活动可以合并
        参数:
        other -
        另请参阅:
        canMergerWith(Session)
      • mergeActivites

        public static List<Session> mergeActivites​(List<Session> tobeMerged)
        合并在年份和教学周占用上,可以合并的教学活动
        合并标准是年份,教学周,教室,教师,星期
      • getClazz

        public Clazz getClazz()
        返回:
        Returns the clazz.
      • setClazz

        public void setClazz​(Clazz clazz)
      • setTeachers

        public void setTeachers​(Set<Teacher> teachers)
      • setTime

        public void setTime​(WeekTime time)
      • getBeginAt

        public Date getBeginAt()
      • getEndAt

        public Date getEndAt()
      • contains

        public boolean contains​(Date oneDay)
      • getContent

        public String getContent()
      • getPlaces

        public String getPlaces()
      • setPlaces

        public void setPlaces​(String places)
      • setTeachingNature

        public void setTeachingNature​(TeachingNature teachingNature)
      • setTeachingMethod

        public void setTeachingMethod​(TeachingMethod teachingMethod)
      • getSubclazz

        public Subclazz getSubclazz()
      • setSubclazz

        public void setSubclazz​(Subclazz subclazz)