public class FixInitialAssignments extends GlobalConstraint<Request,Enrollment>
iConstraintListeners, iId
Constructor and Description |
---|
FixInitialAssignments() |
Modifier and Type | Method and Description |
---|---|
void |
computeConflicts(Assignment<Request,Enrollment> assignment,
Enrollment enrollment,
Set<Enrollment> conflicts)
If there is a conflict that is MPP (method
Request.isMPP() returns true)
and equal to the initial assignment (returned by Variable.getInitialAssignment() ),
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 FixInitialAssignments()
public void computeConflicts(Assignment<Request,Enrollment> assignment, Enrollment enrollment, Set<Enrollment> conflicts)
Request.isMPP()
returns true)
and equal to the initial assignment (returned by Variable.getInitialAssignment()
),
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