diff --git a/src/org/cpsolver/studentsct/online/OnlineSection.java b/src/org/cpsolver/studentsct/online/OnlineSection.java index 21037fe8..3d4749b1 100644 --- a/src/org/cpsolver/studentsct/online/OnlineSection.java +++ b/src/org/cpsolver/studentsct/online/OnlineSection.java @@ -34,6 +34,7 @@ public class OnlineSection extends Section { private int iEnrollment = 0; private boolean iAlwaysEnabled = false; + private Integer iDayOfWeekOffset = null; public OnlineSection(long id, int limit, String name, Subpart subpart, Placement placement, List instructors, Section parent) { super(id, limit, name, subpart, placement, instructors, parent); @@ -71,4 +72,13 @@ public boolean isEnabled(Student student) { return super.isEnabled(student); } + @Override + protected int getDayOfWeekOffset() { + if (iDayOfWeekOffset != null) return iDayOfWeekOffset; + return super.getDayOfWeekOffset(); + } + public void setDayOfWeekOffset(Integer dayOfWeekOffset) { + iDayOfWeekOffset = dayOfWeekOffset; + } + } \ No newline at end of file