public class RoomViolation extends ExamCriterion
AbstractCriterion.ValueUpdateTypeiBest, iDebug, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat| Constructor and Description |
|---|
RoomViolation() |
| Modifier and Type | Method and Description |
|---|---|
double[] |
getBounds(Collection<Exam> variables)
Value bounds (minimum and maximum) of the criterion on a part of the problem
|
double |
getValue(ExamPlacement value,
Set<ExamPlacement> conflicts)
Value of a proposed assignment (including hard conflicts)
|
String |
getWeightName()
Defines weight name (to be used to get the criterion weight from the configuration).
|
String |
getXmlWeightName()
Name of the weight parameter in the parameters section of the examination XML file.
|
boolean |
isPeriodCriterion()
True if this criterion is based on period assignment.
|
String |
toString() |
getInfo, getPeriodValue, getRoomValue, getXmlParameters, isRoomCriterion, setWeight, setXmlParametersafterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, computeBounds, constraintAdded, constraintRemoved, getBest, getBounds, getInfo, getModel, getName, getPerc, getPercRev, getValue, getValue, getWeight, getWeightDefault, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, inc, init, variableAdded, variableRemovedpublic RoomViolation()
public String getWeightName()
AbstractCriteriongetWeightName in class ExamCriterionpublic String getXmlWeightName()
ExamCriteriongetXmlWeightName in class ExamCriterionpublic double getValue(ExamPlacement value, Set<ExamPlacement> conflicts)
Criterionpublic double[] getBounds(Collection<Exam> variables)
CriteriongetBounds in interface Criterion<Exam,ExamPlacement>getBounds in class ExamCriterionpublic boolean isPeriodCriterion()
ExamCriterionExamPlacement.getTimeCost().isPeriodCriterion in class ExamCriterion