public class MaxBreaksFlexibleConstraint.MaxBreaksFlexibleConstraintContext extends FlexibleConstraint.FlexibleConstraintContext
iLastPreference
Constructor and Description |
---|
MaxBreaksFlexibleConstraintContext(Assignment<Lecture,Placement> assignment) |
Modifier and Type | Method and Description |
---|---|
void |
assigned(Assignment<Lecture,Placement> assignment,
Placement value)
Called when
ConstraintWithContext.assigned(Assignment, long, Value) is called to update
the content of the context. |
boolean |
isWeak(Placement value) |
void |
weaken(Placement value) |
getPreference, unassigned, updateCriterion
public MaxBreaksFlexibleConstraintContext(Assignment<Lecture,Placement> assignment)
public void assigned(Assignment<Lecture,Placement> assignment, Placement value)
AssignmentConstraintContext
ConstraintWithContext.assigned(Assignment, long, Value)
is called to update
the content of the context.assigned
in interface AssignmentConstraintContext<Lecture,Placement>
assigned
in class FlexibleConstraint.FlexibleConstraintContext
assignment
- current assignment (with which this context is associated)value
- assigned value