Package org.openurp.edu.clazz.model
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 Summary
Fields Modifier and Type Field Description protected Clazzclazz教学任务protected TeachingMethodteachingMethod授课方式protected TeachingNatureteachingNature授课性质protected WeekTimetime上课时间Fields inherited from class org.beangle.commons.entity.pojo.NumberIdObject
id -
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleancanMergerWith(Session session)判断该教学活动的时间段能否与目标教学活动在[相邻时间段]上合并Objectclone()intcompareTo(Session session)teacher room weekday startUnit weekstate null will be put first,if another is not nullbooleancontains(Date oneDay)DategetBeginAt()ClazzgetClazz()StringgetContent()DategetEndAt()DategetFirstActivityTime()第一次活动时间DategetLastActivityTime()最后一次活动时间StringgetPlaces()Set<Classroom>getRooms()SubclazzgetSubclazz()Set<Teacher>getTeachers()TeachingMethodgetTeachingMethod()TeachingNaturegetTeachingNature()WeekTimegetTime()static List<Session>mergeActivites(List<Session> tobeMerged)合并在年份和教学周占用上,可以合并的教学活动
合并标准是年份,教学周,教室,教师,星期voidmergeWith(Session other)将两排课活动合并,前提是两活动可以合并voidsetClazz(Clazz clazz)voidsetPlaces(String places)voidsetRooms(Set<Classroom> rooms)voidsetSubclazz(Subclazz subclazz)voidsetTeachers(Set<Teacher> teachers)voidsetTeachingMethod(TeachingMethod teachingMethod)voidsetTeachingNature(TeachingNature teachingNature)voidsetTime(WeekTime time)StringtoString()Methods inherited from class org.beangle.commons.entity.pojo.NumberIdObject
equals, getId, hashCode, isPersisted, isTransient, setId
-
Field Details
-
clazz
教学任务 -
time
上课时间 -
teachingNature
授课性质 -
teachingMethod
授课方式
-
-
Constructor Details
-
Session
public Session() -
Session
-
-
Method Details
-
getFirstActivityTime
第一次活动时间- Returns:
-
getLastActivityTime
最后一次活动时间- Returns:
-
clone
-
canMergerWith
判断该教学活动的时间段能否与目标教学活动在[相邻时间段]上合并- Returns:
-
mergeWith
将两排课活动合并,前提是两活动可以合并- Parameters:
other-- See Also:
canMergerWith(Session)
-
mergeActivites
合并在年份和教学周占用上,可以合并的教学活动
合并标准是年份,教学周,教室,教师,星期 -
compareTo
teacher room weekday startUnit weekstate null will be put first,if another is not null- Specified by:
compareToin interfaceComparable<Session>- See Also:
Comparable.compareTo(Object)
-
toString
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
getClazz
- Returns:
- Returns the clazz.
-
setClazz
-
getTeachers
-
setTeachers
-
getRooms
-
setRooms
-
getTime
-
setTime
-
getBeginAt
-
getEndAt
-
contains
-
getContent
-
getPlaces
-
setPlaces
-
getTeachingNature
-
setTeachingNature
-
getTeachingMethod
-
setTeachingMethod
-
getSubclazz
-
setSubclazz
-