public class GroupConstraint.GroupConstraintContext extends Object implements AssignmentConstraintContext<Lecture,Placement>
| Modifier and Type | Field and Description |
|---|---|
protected int |
iLastPreference |
| Constructor and Description |
|---|
GroupConstraintContext(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. |
int |
getPreference() |
void |
unassigned(Assignment<Lecture,Placement> assignment,
Placement value)
Called when
ConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context. |
protected void |
updateCriterion(Assignment<Lecture,Placement> assignment) |
protected int iLastPreference
public GroupConstraintContext(Assignment<Lecture,Placement> assignment)
public void assigned(Assignment<Lecture,Placement> assignment, Placement value)
AssignmentConstraintContextConstraintWithContext.assigned(Assignment, long, Value) is called to update
the content of the context.assigned in interface AssignmentConstraintContext<Lecture,Placement>assignment - current assignment (with which this context is associated)value - assigned valuepublic void unassigned(Assignment<Lecture,Placement> assignment, Placement value)
AssignmentConstraintContextConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context.unassigned in interface AssignmentConstraintContext<Lecture,Placement>assignment - current assignment (with which this context is associated)value - unassigned valueprotected void updateCriterion(Assignment<Lecture,Placement> assignment)
public int getPreference()