public class InstructorNotAvailableConflicts extends InstructorDirectConflicts
AbstractCriterion.ValueContext, AbstractCriterion.ValueUpdateType
iBest, iDebug, iWeight, sDoubleFormat, sPercentFormat
sMaxSize
Constructor and Description |
---|
InstructorNotAvailableConflicts() |
Modifier and Type | Method and Description |
---|---|
void |
getInfo(Assignment<Exam,ExamPlacement> assignment,
Map<String,String> info)
Adds some information into the table with information about the solution
|
String |
getName()
Criterion name
|
double |
getValue(Assignment<Exam,ExamPlacement> assignment,
Collection<Exam> exams)
Value of a part of the problem (given by the collection of variables)
|
double |
getValue(Assignment<Exam,ExamPlacement> assignment,
ExamPlacement value,
Set<ExamPlacement> conflicts)
Value of a proposed assignment (including hard conflicts)
|
String |
toString(Assignment<Exam,ExamPlacement> assignment)
Simple text representation of the criterion and its value.
|
getWeightDefault, getWeightName, getXmlWeightName
getBounds, getPeriodValue, getRoomValue, getXmlParameters, isPeriodCriterion, isRoomCriterion, setWeight, setXmlParameters
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, computeBounds, configure, constraintAdded, constraintRemoved, createAssignmentContext, getAbbreviation, getAssignmentContextReference, getBest, getBounds, getBounds, getBounds, getContext, getContext, getExtendedInfo, getInfo, getModel, getPerc, getPercentage, getPercRev, getValue, getValue, getValue, getValueUpdateType, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, inc, inc, init, setAssignmentContextReference, setModel, setValueUpdateType, variableAdded, variableRemoved
public InstructorNotAvailableConflicts()
public double getValue(Assignment<Exam,ExamPlacement> assignment, ExamPlacement value, Set<ExamPlacement> conflicts)
Criterion
getValue
in interface Criterion<Exam,ExamPlacement>
getValue
in class InstructorDirectConflicts
assignment
- current assignmentvalue
- given valueconflicts
- values conflicting with the given valuepublic double getValue(Assignment<Exam,ExamPlacement> assignment, Collection<Exam> exams)
Criterion
getValue
in interface Criterion<Exam,ExamPlacement>
getValue
in class InstructorDirectConflicts
assignment
- current assignmentexams
- list of problem variablespublic String getName()
Criterion
getName
in interface Criterion<Exam,ExamPlacement>
getName
in class InstructorDirectConflicts
public void getInfo(Assignment<Exam,ExamPlacement> assignment, Map<String,String> info)
InfoProvider
getInfo
in interface InfoProvider<Exam,ExamPlacement>
getInfo
in class InstructorDirectConflicts
assignment
- current assignmentinfo
- info tablepublic String toString(Assignment<Exam,ExamPlacement> assignment)
AbstractCriterion
AbstractCriterion.getAbbreviation()
and x is the current value AbstractCriterion.getValue(Assignment)
.toString
in interface Criterion<Exam,ExamPlacement>
toString
in class InstructorDirectConflicts
assignment
- current assignment