public class HardDistanceConflicts extends GlobalConstraint<Request,Enrollment>
iConstraintListeners, iId| Constructor and Description |
|---|
HardDistanceConflicts() |
| Modifier and Type | Method and Description |
|---|---|
void |
computeConflicts(Assignment<Request,Enrollment> assignment,
Enrollment enrollment,
Set<Enrollment> conflicts)
A given enrollment is conflicting, if there is a section that
is disabled and there is not a matching reservation that would allow for that.
|
boolean |
inConflict(Assignment<Request,Enrollment> assignment,
Enrollment enrollment)
A given enrollment is conflicting, if there is a section that
is disabled and there is not a matching reservation that would allow for that.
|
static boolean |
inConflict(StudentQuality sq,
SctAssignment s1,
Enrollment e) |
static boolean |
inConflict(StudentQuality sq,
Section s1,
Section s2) |
static boolean |
inConflict(StudentQuality sq,
Section s1,
Unavailability s2) |
String |
toString() |
addVariable, assigned, assignedVariables, countAssignedVariables, getName, removeVariable, unassigned, variablesaddConstraintListener, compareTo, computeConflictsNoForwardCheck, constraintListeners, countVariables, equals, getDescription, getId, getModel, hashCode, isConsistent, isHard, removeConstraintListener, setModelpublic HardDistanceConflicts()
public void computeConflicts(Assignment<Request,Enrollment> assignment, Enrollment enrollment, Set<Enrollment> conflicts)
computeConflicts in class Constraint<Request,Enrollment>enrollment - Enrollment that is being consideredconflicts - all computed conflicting requests are added into this setassignment - current assignmentpublic boolean inConflict(Assignment<Request,Enrollment> assignment, Enrollment enrollment)
inConflict in class Constraint<Request,Enrollment>enrollment - Enrollment that is being consideredassignment - current assignmentpublic static boolean inConflict(StudentQuality sq, Section s1, Unavailability s2)
public static boolean inConflict(StudentQuality sq, Section s1, Section s2)
public static boolean inConflict(StudentQuality sq, SctAssignment s1, Enrollment e)
public String toString()
toString in class GlobalConstraint<Request,Enrollment>