|
||||||||||
| 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.IndividualReservation
public class IndividualReservation
Individual reservation. A reservation for a particular student (or students).
| Constructor Summary | |
|---|---|
IndividualReservation(long id,
Offering offering,
Collection<Long> studentIds)
Constructor |
|
IndividualReservation(long id,
Offering offering,
Long... studentIds)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
canAssignOverLimit()
Individual reservations are the only reservations that can be assigned over the limit. |
int |
getPriority()
Individual reservations are of the top priority |
double |
getReservationLimit()
Reservation limit == number of students in the reservation |
Set<Long> |
getStudentIds()
Students in the reservation |
boolean |
isAllowOverlap()
Overlaps are allowed for individual reservations. |
boolean |
isApplicable(Student student)
Reservation is applicable for all students in the reservation |
boolean |
mustBeUsed()
Individual or group reservation must be used (unless it is expired) |
| 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, 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 IndividualReservation(long id,
Offering offering,
Long... studentIds)
id - unique idoffering - offering for which the reservation isstudentIds - one or more students
public IndividualReservation(long id,
Offering offering,
Collection<Long> studentIds)
id - unique idoffering - offering for which the reservation isstudentIds - one or more students| Method Detail |
|---|
public boolean canAssignOverLimit()
canAssignOverLimit in class Reservationpublic boolean mustBeUsed()
mustBeUsed in class Reservationpublic int getPriority()
getPriority in class Reservationpublic boolean isApplicable(Student student)
isApplicable in class Reservationstudent - a student
public Set<Long> getStudentIds()
public double getReservationLimit()
getReservationLimit in class Reservationpublic boolean isAllowOverlap()
isAllowOverlap in class Reservation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||