public class StudentNotAvailable extends GlobalConstraint<Request,Enrollment>
Student.isAvailable(Enrollment) is used.iConstraintListeners, iId| Constructor and Description |
|---|
StudentNotAvailable() |
| Modifier and Type | Method and Description |
|---|---|
void |
computeConflicts(Assignment<Request,Enrollment> assignment,
Enrollment enrollment,
Set<Enrollment> conflicts)
A given enrollment is conflicting, if the student is not available.
|
boolean |
inConflict(Assignment<Request,Enrollment> assignment,
Enrollment enrollment)
A given enrollment is conflicting, if the student is not available.
|
String |
toString() |
addVariable, assigned, assignedVariables, countAssignedVariables, getName, removeVariable, unassigned, variablesaddConstraintListener, compareTo, computeConflictsNoForwardCheck, constraintListeners, countVariables, equals, getDescription, getId, getModel, hashCode, isConsistent, isHard, removeConstraintListener, setModelpublic StudentNotAvailable()
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 enrollments 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 String toString()
toString in class GlobalConstraint<Request,Enrollment>