public class SoftInstructorConstraint.SoftInstructorConstraintContext extends InstructorConstraint.InstructorConstraintContext
iPreference, iResource| Constructor and Description |
|---|
SoftInstructorConstraintContext(Assignment<Lecture,Placement> assignment) |
| Modifier and Type | Method and Description |
|---|---|
void |
assigned(Assignment<Lecture,Placement> assignment,
Placement placement)
Called when
ConstraintWithContext.assigned(Assignment, long, Value) is called to update
the content of the context. |
protected int |
countConflicts(Assignment<Lecture,Placement> assignment) |
int |
getConflicts() |
boolean |
inConflict(Assignment<Lecture,Placement> assignment,
Placement placement) |
void |
unassigned(Assignment<Lecture,Placement> assignment,
Placement placement)
Called when
ConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context. |
countPreference, getNrSlots, getPlacement, getPlacements, getPlacements, getPlacements, getPreference, getResourceOfWeekpublic SoftInstructorConstraintContext(Assignment<Lecture,Placement> assignment)
public void assigned(Assignment<Lecture,Placement> assignment, Placement placement)
AssignmentConstraintContextConstraintWithContext.assigned(Assignment, long, Value) is called to update
the content of the context.assigned in interface AssignmentConstraintContext<Lecture,Placement>assigned in class InstructorConstraint.InstructorConstraintContextassignment - current assignment (with which this context is associated)placement - assigned valuepublic void unassigned(Assignment<Lecture,Placement> assignment, Placement placement)
AssignmentConstraintContextConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context.unassigned in interface AssignmentConstraintContext<Lecture,Placement>unassigned in class InstructorConstraint.InstructorConstraintContextassignment - current assignment (with which this context is associated)placement - unassigned valuepublic int getConflicts()
protected int countConflicts(Assignment<Lecture,Placement> assignment)
public boolean inConflict(Assignment<Lecture,Placement> assignment, Placement placement)