public class InstructorStudentConflict extends StudentConflict
AbstractCriterion.ValueUpdateTypeiIncludeConflictsiBest, iDebug, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat| Constructor and Description |
|---|
InstructorStudentConflict() |
| Modifier and Type | Method and Description |
|---|---|
void |
getInfo(Map<String,String> info)
Adds some information into the table with information about the solution
|
void |
getInfo(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
|
String |
getPlacementSelectionWeightName() |
double |
getWeightDefault(DataProperties config)
Defines default weight (when
AbstractCriterion.getWeightName() parameter is not present in the criterion). |
void |
incJenrl(JenrlConstraint jenrl,
double studentWeight,
Double conflictPriority,
Student student) |
boolean |
inConflict(Placement p1,
Placement p2) |
boolean |
instructor(Placement p1,
Placement p2)
True if there is at least one student teaching one of the two placements and enrolled in the other.
|
protected double |
jointEnrollment(JenrlConstraint jenrl)
Only count students that are instructors assigned to one of the two classes and enrolled in the other.
|
applicable, applicable, bestRestored, committed, committed, distance, getBounds, getBounds, getMetrics, getValue, getValue, getValue, hard, hard, ignore, ignore, init, isApplicable, overlapsgetAbbreviation, getPlacementSelectionWeight, getPlacementSelectionWeightDefault, toStringafterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestSaved, clearCache, computeBounds, constraintAdded, constraintRemoved, getBest, getModel, getName, getPerc, getPercRev, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, variableAdded, variableRemovedpublic InstructorStudentConflict()
protected double jointEnrollment(JenrlConstraint jenrl)
jointEnrollment in class StudentConflictpublic boolean inConflict(Placement p1, Placement p2)
inConflict in class StudentConflictpublic boolean instructor(Placement p1, Placement p2)
public void incJenrl(JenrlConstraint jenrl, double studentWeight, Double conflictPriority, Student student)
incJenrl in class StudentConflictpublic double getWeightDefault(DataProperties config)
AbstractCriterionAbstractCriterion.getWeightName() parameter is not present in the criterion).getWeightDefault in class AbstractCriterion<Lecture,Placement>public String getPlacementSelectionWeightName()
getPlacementSelectionWeightName in class StudentConflictpublic void getInfo(Map<String,String> info)
InfoProvidergetInfo in interface InfoProvider<Lecture>getInfo in class AbstractCriterion<Lecture,Placement>public void getInfo(Map<String,String> info, Collection<Lecture> variables)
InfoProvidergetInfo in interface InfoProvider<Lecture>getInfo in class AbstractCriterion<Lecture,Placement>