public class OnlineReservation extends Reservation
Reservation.ReservationContext| 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 |
|---|---|
boolean |
canAssignOverLimit()
True if can go over the course / config / section limit.
|
int |
getPriority()
Reservation priority (e.g., individual reservations first)
|
double |
getReservationLimit()
Reservation limit
|
int |
getType() |
boolean |
isAllowOverlap()
True if holding this reservation allows a student to have attend overlapping class.
|
boolean |
isApplicable(Student student)
Returns true if the student is applicable for the reservation
|
boolean |
mustBeUsed()
If true, student must use the reservation (if applicable)
|
addConfig, addSection, canEnroll, compareTo, compareTo, createAssignmentContext, getConfigs, getEnrollments, getId, getLimit, getLimitCap, getModel, getOffering, getReservedAvailableSpace, getRestrictivity, getSections, getSections, isExpired, isIncluded, setExpiredgetAssignmentContextReference, getContext, getContext, setAssignmentContextReference, setContextpublic 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 boolean canAssignOverLimit()
ReservationcanAssignOverLimit in class Reservationpublic boolean mustBeUsed()
ReservationmustBeUsed in class Reservationpublic double getReservationLimit()
ReservationgetReservationLimit in class Reservationpublic int getPriority()
ReservationgetPriority in class Reservationpublic boolean isApplicable(Student student)
ReservationisApplicable in class Reservationstudent - a studentpublic boolean isAllowOverlap()
ReservationisAllowOverlap in class ReservationCopyright © 2014 UniTime LLC. All Rights Reserved.