public class DummyReservation extends Reservation
Constructor and Description |
---|
DummyReservation(Offering offering)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAssignOverLimit()
Dummy reservation cannot go over the limit
|
int |
getPriority()
Dummy reservation has low priority
|
double |
getReservationLimit()
Dummy reservation is unlimited
|
boolean |
isApplicable(Student student)
Dummy reservation is not applicable to any students
|
boolean |
mustBeUsed()
Dummy reservation do not need to be used
|
addConfig, addSection, assigned, canEnroll, compareTo, getConfigs, getEnrollments, getId, getLimit, getLimitCap, getOffering, getReservedAvailableSpace, getRestrictivity, getSections, getSections, getUsedSpace, isAllowOverlap, isExpired, isIncluded, setExpired, unassigned
public DummyReservation(Offering offering)
offering
- offering on which the reservation is setpublic double getReservationLimit()
getReservationLimit
in class Reservation
public int getPriority()
getPriority
in class Reservation
public boolean isApplicable(Student student)
isApplicable
in class Reservation
student
- a studentpublic boolean canAssignOverLimit()
canAssignOverLimit
in class Reservation
public boolean mustBeUsed()
mustBeUsed
in class Reservation