public class InstructorLunchBreak.InstructorLunchBreakContext extends AbstractCriterion.ValueContext
iTotal| Modifier | Constructor and Description |
|---|---|
protected |
InstructorLunchBreakContext(Assignment<Lecture,Placement> assignment) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assigned(Assignment<Lecture,Placement> assignment,
Placement value)
Update value when assigned
|
double |
computeLunchPenalty(Assignment<Lecture,Placement> assignment,
InstructorConstraint constraint)
Method computes number of violations in days (Mo, Tue, Wed,..) considering
each week in the semester separately.
|
protected InstructorLunchBreak.CompactInfo |
getCompactInfo(InstructorConstraint constraint)
Get compact info that is associated with an instructor constraint.
|
protected void |
unassigned(Assignment<Lecture,Placement> assignment,
Placement value)
Update value when unassigned
|
void |
updateCriterion(Assignment<Lecture,Placement> assignment,
InstructorConstraint instructorConstraint,
Placement placement)
Method checks or sets the CompactInfo of an InstructorConstraint.
|
void |
updateLunchPenalty(Assignment<Lecture,Placement> assignment,
InstructorConstraint constraint,
Placement p)
Method updates number of violations in days (Mo, Tue, Wed,..) considering
each week in the semester separately.
|
protected InstructorLunchBreakContext(Assignment<Lecture,Placement> assignment)
protected void unassigned(Assignment<Lecture,Placement> assignment, Placement value)
AbstractCriterion.ValueContextunassigned in class AbstractCriterion.ValueContextassignment - current assignmentvalue - recently unassigned valueprotected void assigned(Assignment<Lecture,Placement> assignment, Placement value)
AbstractCriterion.ValueContextassigned in class AbstractCriterion.ValueContextassignment - current assignmentvalue - recently assigned valuepublic void updateCriterion(Assignment<Lecture,Placement> assignment, InstructorConstraint instructorConstraint, Placement placement)
assignment - current assignmentinstructorConstraint - the Instructor constraint of an instructor checked for
criteriaplacement - placement of a lecture currently (un)assignedprotected InstructorLunchBreak.CompactInfo getCompactInfo(InstructorConstraint constraint)
constraint - instructor constraintpublic void updateLunchPenalty(Assignment<Lecture,Placement> assignment, InstructorConstraint constraint, Placement p)
assignment - current assignmentconstraint - the Instructor constraint of an instructor checked for a lunch
breakp - placement of a lecture currently (un)assignedpublic double computeLunchPenalty(Assignment<Lecture,Placement> assignment, InstructorConstraint constraint)
assignment - current assignmentconstraint - instructor constraint