public class InstructorConstraint extends GlobalConstraint<TeachingRequest.Variable,TeachingAssignment>
iConstraintListeners, iId
Constructor and Description |
---|
InstructorConstraint()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
computeConflicts(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
TeachingAssignment value,
Set<TeachingAssignment> conflicts)
The only method which has to be implemented by any constraint.
|
String |
getName()
Constraint's name -- for printing purposes
|
String |
toString() |
addVariable, assigned, assignedVariables, countAssignedVariables, removeVariable, unassigned, variables
addConstraintListener, compareTo, computeConflictsNoForwardCheck, constraintListeners, countVariables, equals, getDescription, getId, getModel, hashCode, inConflict, isConsistent, isHard, removeConstraintListener, setModel
public InstructorConstraint()
public void computeConflicts(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment, TeachingAssignment value, Set<TeachingAssignment> conflicts)
Constraint
computeConflicts
in class Constraint<TeachingRequest.Variable,TeachingAssignment>
assignment
- current assignmentvalue
- value to be assigned to its variableconflicts
- resultant set of conflicting valuespublic String getName()
Constraint
getName
in class Constraint<TeachingRequest.Variable,TeachingAssignment>