public class IndividualReservation extends Reservation
Constructor and Description |
---|
IndividualReservation(long id,
Offering offering,
Collection<Long> studentIds)
Constructor
|
IndividualReservation(long id,
Offering offering,
Long... studentIds)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAssignOverLimit()
Individual reservations are the only reservations that can be assigned over the limit.
|
int |
getPriority()
Individual reservations are of the top priority
|
double |
getReservationLimit()
Reservation limit == number of students in the reservation
|
Set<Long> |
getStudentIds()
Students in the reservation
|
boolean |
isAllowOverlap()
Overlaps are allowed for individual reservations.
|
boolean |
isApplicable(Student student)
Reservation is applicable for all students in the reservation
|
boolean |
mustBeUsed()
Individual or group reservation must be used (unless it is expired)
|
addConfig, addSection, assigned, canEnroll, compareTo, getConfigs, getEnrollments, getId, getLimit, getLimitCap, getOffering, getReservedAvailableSpace, getRestrictivity, getSections, getSections, getUsedSpace, isExpired, isIncluded, setExpired, unassigned
public IndividualReservation(long id, Offering offering, Long... studentIds)
id
- unique idoffering
- offering for which the reservation isstudentIds
- one or more studentspublic IndividualReservation(long id, Offering offering, Collection<Long> studentIds)
id
- unique idoffering
- offering for which the reservation isstudentIds
- one or more studentspublic boolean canAssignOverLimit()
canAssignOverLimit
in class Reservation
public boolean mustBeUsed()
mustBeUsed
in class Reservation
public int getPriority()
getPriority
in class Reservation
public boolean isApplicable(Student student)
isApplicable
in class Reservation
student
- a studentpublic Set<Long> getStudentIds()
public double getReservationLimit()
getReservationLimit
in class Reservation
public boolean isAllowOverlap()
isAllowOverlap
in class Reservation