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, variables
public static final String REFERENCE
public IgnoreStudentConflictsConstraint()
public void addVariable(Lecture variable)
Constraint
addVariable
in class Constraint<Lecture,Placement>
variable
- a variablepublic void computeConflicts(Assignment<Lecture,Placement> assignment, Placement value, Set<Placement> conflicts)
Constraint
computeConflicts
in class Constraint<Lecture,Placement>
assignment
- current assignmentvalue
- value to be assigned to its variableconflicts
- resultant set of conflicting valuespublic boolean isHard()
Constraint
isHard
in class Constraint<Lecture,Placement>