public class CurriculumOverride extends CurriculumReservation
CurriculumReservation
for a particular student (or students) that allows for defining whether
it must be used, whether time conflicts are allowed, and whether it
is allowed to assign the student over the limit. This class is intended to be used
to model student curriculum overrides.
Reservation.ReservationContext
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ALLOW_OVERLAP
Overlaps are not allowed for group reservation overrides by default.
|
static boolean |
DEFAULT_CAN_ASSIGN_OVER_LIMIT
Reservation override cannot be assigned over the limit by default.
|
static boolean |
DEFAULT_MUST_BE_USED
Reservation override does not need to be used by default
|
static int |
DEFAULT_PRIORITY
Reservation priority (lower than individual and group reservations)
|
sMaxSize
Constructor and Description |
---|
CurriculumOverride(long id,
double limit,
Offering offering,
Collection<String> acadAreas,
Collection<String> classifications,
Collection<String> majors,
Collection<String> minors) |
CurriculumOverride(long id,
double limit,
Offering offering,
String acadArea,
Collection<String> classifications,
Collection<String> majors)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
mustBeUsed()
If true, student must use the reservation (if applicable).
|
addConcentration, getAcademicArea, getAcademicAreas, getClassifications, getConcentrations, getMajors, getMinors, getReservationLimit, isApplicable, setReservationLimit
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, 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 CurriculumOverride(long id, double limit, Offering offering, Collection<String> acadAreas, Collection<String> classifications, Collection<String> majors, Collection<String> minors)
@Deprecated public CurriculumOverride(long id, double limit, Offering offering, String acadArea, Collection<String> classifications, Collection<String> majors)
public boolean mustBeUsed()
Reservation
mustBeUsed
in class Reservation