public class IgnoreStudentConflictsConstraint extends Constraint<Lecture,Placement>
Lecture.isToIgnoreStudentConflictsWith(Lecture) and translates to
StudentConflict.ignore(Lecture, Lecture) that is true when the two classes are connected by
this constraint.
| Modifier and Type | Field and Description |
|---|---|
static String |
REFERENCE |
iConstraintListeners, iId| Constructor and Description |
|---|
IgnoreStudentConflictsConstraint() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVariable(Lecture variable)
Add a variable to this constraint
|
void |
computeConflicts(Assignment<Lecture,Placement> assignment,
Placement value,
Set<Placement> conflicts)
The only method which has to be implemented by any constraint.
|
boolean |
isHard()
Returns true if the constraint is hard.
|
addConstraintListener, assigned, assignedVariables, compareTo, computeConflictsNoForwardCheck, constraintListeners, countAssignedVariables, countVariables, equals, getDescription, getId, getModel, getName, hashCode, inConflict, isConsistent, removeConstraintListener, removeVariable, setModel, unassigned, variablespublic static final String REFERENCE
public IgnoreStudentConflictsConstraint()
public void addVariable(Lecture variable)
ConstraintaddVariable in class Constraint<Lecture,Placement>variable - a variablepublic void computeConflicts(Assignment<Lecture,Placement> assignment, Placement value, Set<Placement> conflicts)
ConstraintcomputeConflicts in class Constraint<Lecture,Placement>assignment - current assignmentvalue - value to be assigned to its variableconflicts - resultant set of conflicting valuespublic boolean isHard()
ConstraintisHard in class Constraint<Lecture,Placement>