public class DummyReservation extends Reservation
Reservation.ReservationContext
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ALLOW_OVERLAP
Overlaps are not allowed for dummy reservations.
|
static boolean |
DEFAULT_CAN_ASSIGN_OVER_LIMIT
Dummy reservations can not assign over the limit.
|
static boolean |
DEFAULT_MUST_BE_USED
Dummy reservation does not need to be used
|
static int |
DEFAULT_PRIORITY
Dummy reservation has low priority
|
sMaxSize
Constructor and Description |
---|
DummyReservation(Offering offering)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getReservationLimit()
Dummy reservation is unlimited
|
boolean |
isApplicable(Student student)
Dummy reservation is not applicable to any students
|
addConfig, addSection, addSection, areRestrictionsInclusive, canAssignOverLimit, canBatchAssignOverLimit, canBreakLinkedSections, canEnroll, compareTo, compareTo, createAssignmentContext, getConfigs, getEnrollments, getId, getLimit, getLimitCap, getModel, getOffering, getPriority, getReservedAvailableSpace, getRestrictivity, getSections, getSections, inheritAssignmentContext, isAllowDisabled, isAllowOverlap, isExpired, isIncluded, mustBeUsed, mustBeUsedIgnoreExpiration, neverIncluded, setAllowDisabled, setAllowOverlap, setBreakLinkedSections, setCanAssignOverLimit, setExpired, setMustBeUsed, setNeverIncluded, setPriority
getAssignmentContextReference, getContext, getContext, setAssignmentContextReference
public static final int DEFAULT_PRIORITY
public static final boolean DEFAULT_MUST_BE_USED
public static final boolean DEFAULT_CAN_ASSIGN_OVER_LIMIT
public static final boolean DEFAULT_ALLOW_OVERLAP
public DummyReservation(Offering offering)
offering
- offering on which the reservation is setpublic double getReservationLimit()
getReservationLimit
in class Reservation
public boolean isApplicable(Student student)
isApplicable
in class Reservation
student
- a student