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.
| 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, assigned, canEnroll, compareTo, getConfigs, getEnrollments, getId, getLimit, getLimitCap, getOffering, getReservedAvailableSpace, getRestrictivity, getSections, getSections, getUsedSpace, isExpired, isIncluded, setExpired, unassignedpublic 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)
public boolean isAllowOverlap()
isAllowOverlap in class IndividualReservation