public class GroupReservation extends IndividualReservation
IndividualReservation, but
students cannot be assigned over the limit and the priority is lower than on
individual reservations. Also, a different limit than the number of students
in the group can be provided.
Reservation.ReservationContext| Constructor and Description |
|---|
GroupReservation(long id,
double limit,
Offering offering,
Collection<Long> studentIds)
Constructor
|
GroupReservation(long id,
double limit,
Offering offering,
Long... studentIds)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAssignOverLimit()
Group reservations can not be assigned over the limit.
|
int |
getPriority()
Group reservations are of the second highest priority
|
double |
getReservationLimit()
Reservation limit
|
boolean |
isAllowOverlap()
Overlaps are allowed for individual reservations.
|
void |
setReservationLimit(double limit)
Set reservation limit (-1 for unlimited)
|
getStudentIds, isApplicable, mustBeUsedaddConfig, addSection, canEnroll, compareTo, compareTo, createAssignmentContext, getConfigs, getEnrollments, getId, getLimit, getLimitCap, getModel, getOffering, getReservedAvailableSpace, getRestrictivity, getSections, getSections, isExpired, isIncluded, setExpiredgetAssignmentContextReference, getContext, getContext, setAssignmentContextReference, setContextpublic GroupReservation(long id, double limit, Offering offering, Long... studentIds)
id - unique idlimit - reservation limit (-1 for unlimited)offering - offering for which the reservation isstudentIds - one or more studentspublic GroupReservation(long id, double limit, Offering offering, Collection<Long> studentIds)
id - unique idlimit - reservation limit (-1 for unlimited)offering - offering for which the reservation isstudentIds - one or more studentspublic int getPriority()
getPriority in class IndividualReservationpublic boolean canAssignOverLimit()
canAssignOverLimit in class IndividualReservationpublic double getReservationLimit()
getReservationLimit in class IndividualReservationpublic void setReservationLimit(double limit)
limit - reservation limit, -1 if unlimitedpublic boolean isAllowOverlap()
isAllowOverlap in class IndividualReservationCopyright © 2014 UniTime LLC. All Rights Reserved.