public class CourseReservation extends Reservation
Constructor and Description |
---|
CourseReservation(long id,
Course course)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAssignOverLimit()
Curriculum reservation cannot go over the limit
|
Course |
getCourse()
Course offering
|
int |
getPriority()
Reservation priority (lower than individual and group reservations)
|
double |
getReservationLimit()
Reservation limit (-1 for unlimited)
|
boolean |
isApplicable(Student student)
Check the area, classifications and majors
|
boolean |
mustBeUsed()
Course 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 CourseReservation(long id, Course course)
id
- unique idcourse
- course offering on which the reservation is setpublic boolean canAssignOverLimit()
canAssignOverLimit
in class Reservation
public boolean mustBeUsed()
mustBeUsed
in class Reservation
public double getReservationLimit()
getReservationLimit
in class Reservation
public int getPriority()
getPriority
in class Reservation
public boolean isApplicable(Student student)
isApplicable
in class Reservation
student
- a student