public class FixedAssignments extends GlobalConstraint<Request,Enrollment>
iConstraintListeners, iId
Constructor and Description |
---|
FixedAssignments() |
Modifier and Type | Method and Description |
---|---|
void |
computeConflicts(Assignment<Request,Enrollment> assignment,
Enrollment enrollment,
Set<Enrollment> conflicts)
If there is a conflict that is fixed (method
CourseRequest.isFixed() returns true)
and equal to the initial assignment (returned by CourseRequest.getFixedValue() ),
the given enrollment is put into the conflicts. |
addVariable, assigned, assignedVariables, countAssignedVariables, removeVariable, unassigned, variables
addConstraintListener, compareTo, computeConflictsNoForwardCheck, constraintListeners, countVariables, equals, getDescription, getId, getModel, getName, hashCode, inConflict, isConsistent, isHard, removeConstraintListener, setModel
public FixedAssignments()
public void computeConflicts(Assignment<Request,Enrollment> assignment, Enrollment enrollment, Set<Enrollment> conflicts)
CourseRequest.isFixed()
returns true)
and equal to the initial assignment (returned by CourseRequest.getFixedValue()
),
the given enrollment is put into the conflicts.computeConflicts
in class Constraint<Request,Enrollment>
assignment
- current assignmentenrollment
- value to be assigned to its variableconflicts
- resultant set of conflicting values