Class Session

java.lang.Object
org.beangle.commons.entity.pojo.NumberIdObject<Long>
org.beangle.commons.entity.pojo.LongIdObject
org.openurp.edu.clazz.model.Session
All Implemented Interfaces:
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>
教学活动
Since:
2005-11-22
See Also:
Serialized Form
  • Field Details

    • clazz

      @NotNull protected Clazz clazz
      教学任务
    • time

      protected WeekTime time
      上课时间
    • teachingNature

      @NotNull protected TeachingNature teachingNature
      授课性质
    • teachingMethod

      @NotNull protected TeachingMethod teachingMethod
      授课方式
  • Constructor Details

  • Method Details

    • getFirstActivityTime

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

      public Date getLastActivityTime()
      最后一次活动时间
      Returns:
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • canMergerWith

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

      public void mergeWith(Session other)
      将两排课活动合并,前提是两活动可以合并
      Parameters:
      other -
      See Also:
      canMergerWith(Session)
    • mergeActivites

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

      public int compareTo(Session session)
      teacher room weekday startUnit weekstate null will be put first,if another is not null
      Specified by:
      compareTo in interface Comparable<Session>
      See Also:
      Comparable.compareTo(Object)
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
      Object.toString()
    • getClazz

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

      public void setClazz(Clazz clazz)
    • getTeachers

      public Set<Teacher> getTeachers()
    • setTeachers

      public void setTeachers(Set<Teacher> teachers)
    • getRooms

      public Set<Classroom> getRooms()
    • setRooms

      public void setRooms(Set<Classroom> rooms)
    • getTime

      public WeekTime getTime()
    • 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)
    • getTeachingNature

      public TeachingNature getTeachingNature()
    • setTeachingNature

      public void setTeachingNature(TeachingNature teachingNature)
    • getTeachingMethod

      public TeachingMethod getTeachingMethod()
    • setTeachingMethod

      public void setTeachingMethod(TeachingMethod teachingMethod)
    • getSubclazz

      public Subclazz getSubclazz()
    • setSubclazz

      public void setSubclazz(Subclazz subclazz)