|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.ifs.criteria.AbstractCriterion<Exam,ExamPlacement>
net.sf.cpsolver.exam.criteria.ExamCriterion
public abstract class ExamCriterion
Abstract examination criterion. All examination criteria are inherited from this criterion.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.cpsolver.ifs.criteria.AbstractCriterion |
|---|
AbstractCriterion.ValueUpdateType |
| Field Summary |
|---|
| Fields inherited from class net.sf.cpsolver.ifs.criteria.AbstractCriterion |
|---|
iBest, iDebug, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat |
| Constructor Summary | |
|---|---|
ExamCriterion()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.sf.cpsolver.ifs.criteria.AbstractCriterion |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.cpsolver.ifs.criteria.Criterion |
|---|
getValue |
| Constructor Detail |
|---|
public ExamCriterion()
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||