|
||||||||||
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
net.sf.cpsolver.studentsct.reservation.GroupReservation
public class GroupReservation
Group reservation. This is basically a IndividualReservation
, but
students cannot be assigned over the limit and the priority is lower than on
individual reservations. Also, a different limit than the number of students
in the group can be provided.
Constructor Summary | |
---|---|
GroupReservation(long id,
double limit,
Offering offering,
Collection<Long> studentIds)
Constructor |
|
GroupReservation(long id,
double limit,
Offering offering,
Long... studentIds)
Constructor |
Method Summary | |
---|---|
boolean |
canAssignOverLimit()
Group reservations can not be assigned over the limit. |
int |
getPriority()
Group reservations are of the second highest priority |
double |
getReservationLimit()
Reservation limit |
boolean |
isAllowOverlap()
Overlaps are allowed for individual reservations. |
void |
setReservationLimit(double limit)
Set reservation limit (-1 for unlimited) |
Methods inherited from class net.sf.cpsolver.studentsct.reservation.IndividualReservation |
---|
getStudentIds, isApplicable, mustBeUsed |
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 GroupReservation(long id, double limit, Offering offering, Long... studentIds)
id
- unique idlimit
- reservation limit (-1 for unlimited)offering
- offering for which the reservation isstudentIds
- one or more studentspublic GroupReservation(long id, double limit, Offering offering, Collection<Long> studentIds)
id
- unique idlimit
- reservation limit (-1 for unlimited)offering
- offering for which the reservation isstudentIds
- one or more studentsMethod Detail |
---|
public int getPriority()
getPriority
in class IndividualReservation
public boolean canAssignOverLimit()
canAssignOverLimit
in class IndividualReservation
public double getReservationLimit()
getReservationLimit
in class IndividualReservation
public void setReservationLimit(double limit)
public boolean isAllowOverlap()
isAllowOverlap
in class IndividualReservation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |