public class InstructorConstraint.InstructorConstraintContext extends Object implements AssignmentConstraintContext<Lecture,Placement>
Modifier and Type | Field and Description |
---|---|
int |
iPreference |
protected List<Placement>[] |
iResource |
Constructor and Description |
---|
InstructorConstraintContext(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 |
countPreference(Assignment<Lecture,Placement> assignment) |
int |
getNrSlots() |
Placement |
getPlacement(int slot,
int day) |
List<Placement> |
getPlacements(int slot) |
List<Placement> |
getPlacements(int slot,
BitSet weekCode) |
List<Placement> |
getPlacements(int slot,
Placement placement) |
int |
getPreference()
Overall back-to-back preference of this instructor
|
Placement[] |
getResourceOfWeek(int startDay) |
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 int iPreference
public InstructorConstraintContext(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 List<Placement> getPlacements(int slot, BitSet weekCode)
public List<Placement> getPlacements(int slot, Placement placement)
public int getNrSlots()
public Placement[] getResourceOfWeek(int startDay)
public int getPreference()
public int countPreference(Assignment<Lecture,Placement> assignment)