public abstract class ExamCriterion extends AbstractCriterion<Exam,ExamPlacement>
AbstractCriterion.ValueUpdateType
iBest, iDebug, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat
Constructor and Description |
---|
ExamCriterion() |
Modifier and Type | Method and Description |
---|---|
double[] |
getBounds(Collection<Exam> exams)
Value bounds (minimum and maximum) of the criterion on a part of the problem
|
void |
getInfo(Map<String,String> info)
Adds some information into the table with information about the solution
|
double |
getPeriodValue(ExamPlacement value)
Return impact of this criterion on period assignment (if this criterion is based on period assignment).
|
double |
getRoomValue(ExamPlacement value)
Return impact of this criterion on room assignment (if this criterion is based on room assignment).
|
String |
getWeightName()
Defines weight name (to be used to get the criterion weight from the configuration).
|
void |
getXmlParameters(Map<String,String> params)
Put all the parameters of this criterion into a map that is used to write parameters section of the examination XML file.
|
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.
|
boolean |
isRoomCriterion()
True if this criterion is based on room assignment.
|
void |
setWeight(double weight) |
void |
setXmlParameters(Map<String,String> params)
Set all the parameters of this criterion from a map that is read from the parameters section the examination XML file.
|
afterAssigned, 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, variableRemoved
public ExamCriterion()
public void setWeight(double weight)
public String getWeightName()
AbstractCriterion
getWeightName
in class AbstractCriterion<Exam,ExamPlacement>
public double[] getBounds(Collection<Exam> exams)
Criterion
getBounds
in interface Criterion<Exam,ExamPlacement>
getBounds
in class AbstractCriterion<Exam,ExamPlacement>
public void getInfo(Map<String,String> info)
InfoProvider
getInfo
in interface InfoProvider<Exam>
getInfo
in class AbstractCriterion<Exam,ExamPlacement>
public boolean isPeriodCriterion()
ExamPlacement.getTimeCost()
.public double getPeriodValue(ExamPlacement value)
ExamPlacement.getTimeCost()
.public boolean isRoomCriterion()
ExamPlacement.getRoomCost()
.public double getRoomValue(ExamPlacement value)
ExamPlacement.getRoomCost()
.public String getXmlWeightName()
public void getXmlParameters(Map<String,String> params)
public void setXmlParameters(Map<String,String> params)