public class OnlineReservation extends Reservation
Reservation.ReservationContextsMaxSize| Constructor and Description |
|---|
OnlineReservation(int type,
long id,
Offering offering,
int priority,
boolean over,
int limit,
boolean apply,
boolean mustUse,
boolean allowOverlap,
boolean expired)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
double |
getReservationLimit()
Reservation limit
|
int |
getType() |
boolean |
isApplicable(Student student)
Returns true if the student is applicable for the reservation
|
addConfig, addSection, canAssignOverLimit, canBatchAssignOverLimit, canEnroll, compareTo, compareTo, createAssignmentContext, getConfigs, getEnrollments, getId, getLimit, getLimitCap, getModel, getOffering, getPriority, getReservedAvailableSpace, getRestrictivity, getSections, getSections, inheritAssignmentContext, isAllowOverlap, isExpired, isIncluded, mustBeUsed, setAllowOverlap, setCanAssignOverLimit, setExpired, setMustBeUsed, setPrioritygetAssignmentContextReference, getContext, getContext, setAssignmentContextReferencepublic OnlineReservation(int type, long id, Offering offering, int priority, boolean over, int limit, boolean apply, boolean mustUse, boolean allowOverlap, boolean expired)
type - reservation typeid - reservation unique idoffering - reservation offeringpriority - reservation priorityover - true when the reservation allows the student to be assigned over the limitlimit - reservation limitapply - true if the reservation applies to the given studentmustUse - true if the reservation must be usedallowOverlap - true if the reservation allows for time overlapsexpired - true if the reservation is expiredpublic int getType()
public double getReservationLimit()
ReservationgetReservationLimit in class Reservationpublic boolean isApplicable(Student student)
ReservationisApplicable in class Reservationstudent - a studentCopyright © 2017 UniTime LLC. All Rights Reserved.