public class CourseReservation extends Reservation
Reservation.ReservationContext
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ALLOW_OVERLAP
Overlaps are not allowed for course reservations.
|
static boolean |
DEFAULT_CAN_ASSIGN_OVER_LIMIT
Course reservations can not assign over the limit.
|
static boolean |
DEFAULT_MUST_BE_USED
Course reservation does not need to be used
|
static int |
DEFAULT_PRIORITY
Reservation priority (lower than individual and group reservations)
|
sMaxSize
Constructor and Description |
---|
CourseReservation(long id,
Course course)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Course |
getCourse()
Course offering
|
double |
getReservationLimit()
Reservation limit (-1 for unlimited)
|
boolean |
isApplicable(Student student)
Check the area, classifications and majors
|
addConfig, addSection, addSection, areRestrictionsInclusive, canAssignOverLimit, canBatchAssignOverLimit, canBreakLinkedSections, canEnroll, compareTo, compareTo, createAssignmentContext, getConfigs, getEnrollments, getId, getLimit, getLimit, getLimitCap, getLimitCap, getModel, getOffering, getPriority, getReservedAvailableSpace, 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 CourseReservation(long id, Course course)
id
- unique idcourse
- course 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