public interface SctAssignment
Modifier and Type | Method and Description |
---|---|
void |
assigned(Assignment<Request,Enrollment> assignment,
Enrollment enrollment)
Enrollment with this assignment was assigned to a
Request . |
int |
compareById(SctAssignment a)
Compare assignments by unique ids.
|
Set<Enrollment> |
getEnrollments(Assignment<Request,Enrollment> assignment)
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(SctAssignment assignment)
True, if this assignment is overlapping in time and space with the given
assignment.
|
boolean |
isOverlapping(Set<? extends SctAssignment> assignments)
True, if this assignment is overlapping in time and space with the given
set of assignments.
|
void |
unassigned(Assignment<Request,Enrollment> assignment,
Enrollment enrollment)
Enrollment with this assignment was unassigned from a
Request . |
TimeLocation getTime()
List<RoomLocation> getRooms()
RoomLocation
int getNrRooms()
boolean isOverlapping(SctAssignment assignment)
assignment
- another assignmentboolean isOverlapping(Set<? extends SctAssignment> assignments)
assignments
- a set of assignmentsvoid assigned(Assignment<Request,Enrollment> assignment, Enrollment enrollment)
Request
.assignment
- current assignmentenrollment
- an enrollment that was just assignedvoid unassigned(Assignment<Request,Enrollment> assignment, Enrollment enrollment)
Request
.assignment
- current assignmentenrollment
- an enrollment that was just unassignedSet<Enrollment> getEnrollments(Assignment<Request,Enrollment> assignment)
assignment
- current assignmentsboolean isAllowOverlap()
long getId()
int compareById(SctAssignment a)
a
- another section assignment