@Entity(name="org.openurp.edu.course.model.Session") public class Session extends org.beangle.commons.entity.pojo.LongIdObject implements Comparable<Session>
| Modifier and Type | Field and Description |
|---|---|
protected Clazz |
clazz
教学任务
|
protected org.beangle.commons.lang.time.WeekTime |
time
上课时间
|
| Constructor and Description |
|---|
Session() |
Session(Teacher teacher,
Classroom room,
org.beangle.commons.lang.time.WeekTime time) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMergerWith(Session session)
判断该教学活动的时间段能否与目标教学活动在[相邻时间段]上合并
|
Object |
clone() |
int |
compareTo(Session session)
teacher room weekday startUnit weekstate null will be put first,if
another is not null
|
boolean |
contains(Date oneDay) |
Date |
getBeginAt() |
Clazz |
getClazz() |
String |
getContent() |
Date |
getEndAt() |
Date |
getFirstActivityTime()
第一次活动时间
|
String |
getRemark() |
Set<Classroom> |
getRooms() |
Set<Teacher> |
getTeachers() |
org.beangle.commons.lang.time.WeekTime |
getTime() |
static List<Session> |
mergeActivites(List<Session> tobeMerged)
合并在年份和教学周占用上,可以合并的教学活动
合并标准是年份,教学周,教室,教师,星期 |
void |
mergeWith(Session other)
将两排课活动合并,前提是两活动可以合并
|
void |
setClazz(Clazz clazz) |
void |
setRemark(String remark) |
void |
setRooms(Set<Classroom> rooms) |
void |
setTeachers(Set<Teacher> teachers) |
void |
setTime(org.beangle.commons.lang.time.WeekTime time) |
String |
toString() |
@NotNull protected Clazz clazz
protected org.beangle.commons.lang.time.WeekTime time
public Date getFirstActivityTime()
calendar - public boolean canMergerWith(Session session)
other - public void mergeWith(Session other)
other - canMergerWith(Session)public static List<Session> mergeActivites(List<Session> tobeMerged)
public int compareTo(Session session)
compareTo in interface Comparable<Session>Comparable.compareTo(Object)public String toString()
toString in class ObjectObject.toString()public Clazz getClazz()
public void setClazz(Clazz clazz)
public org.beangle.commons.lang.time.WeekTime getTime()
public void setTime(org.beangle.commons.lang.time.WeekTime time)
public Date getBeginAt()
public Date getEndAt()
public boolean contains(Date oneDay)
public String getContent()
public String getRemark()
public void setRemark(String remark)
Copyright © 2014–2019 The OpenURP Software. All rights reserved.