public class InstructorLunchBreak extends TimetablingCriterion
| Modifier and Type | Class and Description |
|---|---|
static class |
InstructorLunchBreak.CompactInfo
The class is used as a container of information concerning lunch break
of instructors.
|
class |
InstructorLunchBreak.InstructorLunchBreakContext |
AbstractCriterion.ValueContext, AbstractCriterion.ValueUpdateTypeiBest, iDebug, iWeight, sDoubleFormat, sPercentFormatsMaxSize| Constructor and Description |
|---|
InstructorLunchBreak() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(DataProperties properties)
Configure the criterion if needed
|
AbstractCriterion.ValueContext |
createAssignmentContext(Assignment<Lecture,Placement> assignment)
Create a new assignment context for the given assignment.
|
void |
getInfo(Assignment<Lecture,Placement> assignment,
Map<String,String> info)
Adds some information into the table with information about the solution
|
void |
getInfo(Assignment<Lecture,Placement> assignment,
Map<String,String> info,
Collection<Lecture> variables)
Adds some information into the table with information about the solution,
only consider variables from the given set
|
double |
getValue(Assignment<Lecture,Placement> assignment,
Collection<Lecture> variables)
Value of a part of the problem (given by the collection of variables)
|
double |
getValue(Assignment<Lecture,Placement> assignment,
Placement value,
Set<Placement> conflicts)
Value of a proposed assignment (including hard conflicts)
|
protected List<BitSet> |
getWeeks()
The method creates date patterns (bitsets) which represent the weeks of a
semester.
|
getPlacementSelectionAdjustmentsName, getPlacementSelectionWeight, getPlacementSelectionWeightDefault, getPlacementSelectionWeightNameafterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, computeBounds, constraintAdded, constraintRemoved, getAbbreviation, getAssignmentContextReference, getBest, getBounds, getBounds, getBounds, getBounds, getContext, getContext, getExtendedInfo, getModel, getName, getPerc, getPercentage, getPercRev, getValue, getValue, getValue, getValueUpdateType, getWeight, getWeightDefault, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, inc, init, setAssignmentContextReference, setModel, setValueUpdateType, toString, variableAdded, variableRemovedpublic InstructorLunchBreak()
public void configure(DataProperties properties)
Criterionprotected List<BitSet> getWeeks()
public double getValue(Assignment<Lecture,Placement> assignment, Placement value, Set<Placement> conflicts)
Criterionassignment - current assignmentvalue - given valueconflicts - values conflicting with the given valuepublic double getValue(Assignment<Lecture,Placement> assignment, Collection<Lecture> variables)
Criterionpublic void getInfo(Assignment<Lecture,Placement> assignment, Map<String,String> info)
InfoProvidergetInfo in interface InfoProvider<Lecture,Placement>getInfo in class AbstractCriterion<Lecture,Placement>assignment - current assignmentinfo - info tablepublic void getInfo(Assignment<Lecture,Placement> assignment, Map<String,String> info, Collection<Lecture> variables)
InfoProvidergetInfo in interface InfoProvider<Lecture,Placement>getInfo in class AbstractCriterion<Lecture,Placement>assignment - current assignmentinfo - info tablevariables - sub-problempublic AbstractCriterion.ValueContext createAssignmentContext(Assignment<Lecture,Placement> assignment)
HasAssignmentContextcreateAssignmentContext in interface HasAssignmentContext<Lecture,Placement,AbstractCriterion.ValueContext>createAssignmentContext in class AbstractCriterion<Lecture,Placement>assignment - an assignment for which there needs to be an assignment context