public class IndividualReservation extends Reservation
Reservation.ReservationContext| 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, canEnroll, compareTo, compareTo, createAssignmentContext, getConfigs, getEnrollments, getId, getLimit, getLimitCap, getModel, getOffering, getReservedAvailableSpace, getRestrictivity, getSections, getSections, isExpired, isIncluded, setExpiredgetAssignmentContextReference, getContext, getContext, setAssignmentContextReference, setContextpublic 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 Reservationpublic boolean mustBeUsed()
mustBeUsed in class Reservationpublic int getPriority()
getPriority in class Reservationpublic boolean isApplicable(Student student)
isApplicable in class Reservationstudent - a studentpublic Set<Long> getStudentIds()
public double getReservationLimit()
getReservationLimit in class Reservationpublic boolean isAllowOverlap()
isAllowOverlap in class ReservationCopyright © 2014 UniTime LLC. All Rights Reserved.