From 9ad64804a4285928b70f8101cdbb5405e5023361 Mon Sep 17 00:00:00 2001 From: tomas-muller Date: Fri, 6 Aug 2021 14:01:14 +0200 Subject: [PATCH] Online Student Scheduling: Reservation Limit Cap - do not cap the reservation limit of OnlineReservation any further - it is already capped by the config/class limits (XReservation.getLimit() minus the current enrollment, except of the student in question) - capping the limit any further can create discrepancies as the config/class limits are computed differently (excluding other students, possibly causing the class no longer available errors in the check-assignment action) --- src/org/cpsolver/studentsct/online/OnlineReservation.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/cpsolver/studentsct/online/OnlineReservation.java b/src/org/cpsolver/studentsct/online/OnlineReservation.java index 564c0f63..fcdce016 100644 --- a/src/org/cpsolver/studentsct/online/OnlineReservation.java +++ b/src/org/cpsolver/studentsct/online/OnlineReservation.java @@ -96,4 +96,9 @@ public boolean mustBeUsed() { return mustBeUsedIgnoreExpiration(); return super.mustBeUsed(); } + + @Override + public double getLimitCap() { + return getReservationLimit(); + } }