public class RoomConstraint.RoomConstraintContext extends Object implements AssignmentConstraintContext<Lecture,Placement>
Constructor and Description |
---|
RoomConstraintContext(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. |
Placement |
getPlacement(int slot,
int day) |
List<Placement> |
getPlacements(int slot) |
Placement[] |
getResourceOfWeek(int startDay) |
boolean |
inConflict(Lecture lecture,
TimeLocation time) |
void |
unassigned(Assignment<Lecture,Placement> assignment,
Placement placement)
Called when
ConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context. |
public RoomConstraintContext(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 List<Placement> getPlacements(int slot)
public Placement getPlacement(int slot, int day)
public Placement[] getResourceOfWeek(int startDay)
public boolean inConflict(Lecture lecture, TimeLocation time)