|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.studentsct.reservation.Reservation
net.sf.cpsolver.studentsct.reservation.CurriculumReservation
public class CurriculumReservation
Curriculum reservation. Students are matched based on their academic area.
If classifications and/or majors are included, student must match on them as well.
Constructor Summary | |
---|---|
CurriculumReservation(long id,
double limit,
Offering offering,
String acadArea,
Collection<String> classifications,
Collection<String> majors)
Constructor |
Method Summary | |
---|---|
boolean |
canAssignOverLimit()
Curriculum reservation cannot go over the limit |
String |
getAcademicArea()
Academic area |
Set<String> |
getClassifications()
Academic classifications |
Set<String> |
getMajors()
Majors |
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()
Curriculum reservation do not need to be used |
void |
setReservationLimit(double limit)
Set reservation limit (-1 for unlimited) |
Methods inherited from class net.sf.cpsolver.studentsct.reservation.Reservation |
---|
addConfig, addSection, assigned, canEnroll, compareTo, getConfigs, getEnrollments, getId, getLimit, getLimitCap, getOffering, getReservedAvailableSpace, getRestrictivity, getSections, getSections, getUsedSpace, isAllowOverlap, isExpired, isIncluded, setExpired, unassigned |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurriculumReservation(long id, double limit, Offering offering, String acadArea, Collection<String> classifications, Collection<String> majors)
id
- unique idlimit
- reservation limit (-1 for unlimited)offering
- instructional offering on which the reservation is setacadArea
- academic areaclassifications
- zero or more classifications (classifications must match if not empty)majors
- zero or more majors (majors must match if not empty)Method Detail |
---|
public boolean canAssignOverLimit()
canAssignOverLimit
in class Reservation
public boolean mustBeUsed()
mustBeUsed
in class Reservation
public double getReservationLimit()
getReservationLimit
in class Reservation
public void setReservationLimit(double limit)
public int getPriority()
getPriority
in class Reservation
public String getAcademicArea()
public Set<String> getMajors()
public Set<String> getClassifications()
public boolean isApplicable(Student student)
isApplicable
in class Reservation
student
- a student
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |