|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Assignment
Time and room assignment. This can be either Section or
FreeTimeRequest.
| Method Summary | |
|---|---|
void |
assigned(Enrollment enrollment)
Enrollment with this assignmnet was assigned to a Request. |
int |
compareById(Assignment a)
Compare assignments by unique ids. |
Set<Enrollment> |
getEnrollments()
Return the list of assigned enrollments that contains this assignment. |
long |
getId()
Unique id |
int |
getNrRooms()
Number of rooms in which a section meets |
List<RoomLocation> |
getRooms()
Room assignment |
TimeLocation |
getTime()
Time assignment |
boolean |
isAllowOverlap()
Return true if overlaps are allowed, but the number of overlapping slots should be minimized. |
boolean |
isOverlapping(Assignment assignment)
True, if this assignment is overlapping in time and space with the given assignment. |
boolean |
isOverlapping(Set<? extends Assignment> assignments)
True, if this assignment is overlapping in time and space with the given set of assignments. |
void |
unassigned(Enrollment enrollment)
Enrollment with this assignmnet was unassigned from a Request. |
| Method Detail |
|---|
TimeLocation getTime()
List<RoomLocation> getRooms()
RoomLocationint getNrRooms()
boolean isOverlapping(Assignment assignment)
boolean isOverlapping(Set<? extends Assignment> assignments)
void assigned(Enrollment enrollment)
Request.
void unassigned(Enrollment enrollment)
Request.
Set<Enrollment> getEnrollments()
boolean isAllowOverlap()
long getId()
int compareById(Assignment a)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||