Package org.openurp.edu.clazz.model
Class Enrollment
- java.lang.Object
-
- org.openurp.edu.clazz.model.Enrollment
-
- All Implemented Interfaces:
Serializable,Cloneable,org.beangle.commons.entity.Component
@Embeddable public class Enrollment extends Object implements org.beangle.commons.entity.Component, Cloneable, Serializable
教学任务中的教学班.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Enrollment()
-
Method Summary
-
-
-
Method Detail
-
clone
public Enrollment clone()
复制一个教学班,但并不复制他所在的教学任务引用
和教学班中的实际学生修读信息和实际学生数.
-
getCourseTaker
public CourseTaker getCourseTaker(Long stdId)
-
getNormalCourseTakers
public Set<CourseTaker> getNormalCourseTakers()
返回正常参加上课的上课名单CourseTaker- Returns:
-
addLimitGroups
public void addLimitGroups(Clazz clazz, List<Restriction> groups)
-
addLimitGroups
public void addLimitGroups(Clazz clazz, Restriction... groups)
-
getOrCreateDefautRestriction
public Restriction getOrCreateDefautRestriction()
获取或者创建Prime=true的限制组
如果已经有,那么返回第一个Prime=true的限制组
-
getCourseTaker
public CourseTaker getCourseTaker(Student std)
-
getActual
public int getActual()
-
setActual
public void setActual(int stdCount)
-
getCourseTakers
public Set<CourseTaker> getCourseTakers()
-
setCourseTakers
public void setCourseTakers(Set<CourseTaker> courseTakers)
-
getCapacity
public int getCapacity()
-
setCapacity
public void setCapacity(int limitCount)
-
getGrade
public String getGrade()
-
setGrade
public void setGrade(String year)
-
getDepart
public Department getDepart()
-
setDepart
public void setDepart(Department depart)
-
getRestrictions
public List<Restriction> getRestrictions()
-
setRestrictions
public void setRestrictions(List<Restriction> limitGroups)
-
getGenderRatio
public GenderRatio getGenderRatio()
-
setGenderRatio
public void setGenderRatio(GenderRatio genderRatio)
-
getAbilityRates
public List<CourseAbilityRate> getAbilityRates()
-
setAbilityRates
public void setAbilityRates(List<CourseAbilityRate> abilityRates)
-
isLocked
public boolean isLocked()
-
setLocked
public void setLocked(boolean locked)
-
getReserved
public int getReserved()
-
setReserved
public void setReserved(int reserved)
-
-