public class MinimizeNumberOfUsedGroupsOfTime.MinimizeNumberOfUsedGroupsOfTimeContext extends Object implements AssignmentConstraintContext<Lecture,Placement>
Constructor and Description |
---|
MinimizeNumberOfUsedGroupsOfTimeContext(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. |
int |
currentUsage() |
int |
getOverLimit(Placement placement) |
Set<Placement> |
getUsage(int slot) |
boolean |
isOverLimit(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. |
void |
weaken() |
void |
weaken(Placement value) |
public MinimizeNumberOfUsedGroupsOfTimeContext(Assignment<Lecture,Placement> assignment)
public void assigned(Assignment<Lecture,Placement> assignment, Placement placement)
AssignmentConstraintContext
ConstraintWithContext.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)placement
- assigned valuepublic void unassigned(Assignment<Lecture,Placement> assignment, Placement placement)
AssignmentConstraintContext
ConstraintWithContext.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)placement
- unassigned valuepublic int currentUsage()
public boolean isOverLimit(Placement placement)
public int getOverLimit(Placement placement)
public void weaken()