public class OnlineSection extends Section
Section class that allows to set the current section enrollment.
This class is particularly useful when a model containing only the given student is constructed (to provide him/her with a schedule or suggestions).Section.SectionContextsMaxSize| Constructor and Description |
|---|
OnlineSection(long id,
int limit,
String name,
Subpart subpart,
Placement placement,
List<Instructor> instructors,
Section parent) |
OnlineSection(long id,
int limit,
String name,
Subpart subpart,
Placement placement,
String instructorIds,
String instructorNames,
Section parent)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getDayOfWeekOffset() |
int |
getEnrollment()
Get current enrollment
|
boolean |
isAlwaysEnabled() |
boolean |
isEnabled()
Return enabled flag of the class.
|
boolean |
isEnabled(Student student)
Return enabled flag of the class.
|
void |
setAlwaysEnabled(boolean alwaysEnabled) |
void |
setDayOfWeekOffset(Integer dayOfWeekOffset) |
void |
setEnrollment(int enrollment)
Set current enrollment
|
addIgnoreConflictWith, assigned, clearReservationCache, compareById, compareTo, compareTo, createAssignmentContext, equals, getChoice, getEnrollments, getEnrollmentTotalWeight, getEnrollmentWeight, getId, getIgnoreConflictWithSectionIds, getInstructorNames, getInstructors, getLimit, getLongName, getLongName, getMaxEnrollmentWeight, getMinEnrollmentWeight, getModel, getName, getName, getNameByCourse, getNote, getNrRooms, getOnlineSectioningPenalty, getParent, getPenalty, getPlacement, getReservations, getRooms, getSectionReservations, getSpaceExpected, getSpaceHeld, getSubpart, getTime, getTotalUnreservedSpace, getUnavailabilities, getUnreservedSpace, hashCode, hasInstructors, hasTime, inheritAssignmentContext, isAllowOverlap, isCancelled, isModalityPreferred, isOnline, isOverlapping, isOverlapping, isPast, isToIgnoreStudentConflictsWith, nrInstructors, sameChoice, sameInstructionalType, sameInstructors, sameTime, setCancelled, setEnabled, setLimit, setName, setName, setNote, setOnline, setPast, setPenalty, setPlacement, setSpaceExpected, setSpaceHeld, toString, unassignedgetAssignmentContextReference, getContext, getContext, setAssignmentContextReferencepublic OnlineSection(long id, int limit, String name, Subpart subpart, Placement placement, List<Instructor> instructors, Section parent)
@Deprecated public OnlineSection(long id, int limit, String name, Subpart subpart, Placement placement, String instructorIds, String instructorNames, Section parent)
public void setEnrollment(int enrollment)
enrollment - current enrollmentpublic int getEnrollment()
public void setAlwaysEnabled(boolean alwaysEnabled)
public boolean isAlwaysEnabled()
public boolean isEnabled()
SectionSection.isEnabled(Student) where applicable.public boolean isEnabled(Student student)
Sectionprotected int getDayOfWeekOffset()
getDayOfWeekOffset in class Sectionpublic void setDayOfWeekOffset(Integer dayOfWeekOffset)