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, variablesaddConstraintListener, compareTo, computeConflictsNoForwardCheck, constraintListeners, countVariables, equals, getDescription, getId, getModel, hashCode, inConflict, isConsistent, isHard, removeConstraintListener, setModelpublic InstructorConstraint()
public void computeConflicts(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment, TeachingAssignment value, Set<TeachingAssignment> conflicts)
ConstraintcomputeConflicts in class Constraint<TeachingRequest.Variable,TeachingAssignment>assignment - current assignmentvalue - value to be assigned to its variableconflicts - resultant set of conflicting valuespublic String getName()
ConstraintgetName in class Constraint<TeachingRequest.Variable,TeachingAssignment>