public class StudentOnlineConflict extends StudentConflict
AbstractCriterion.ValueContext, AbstractCriterion.ValueUpdateTypeiIncludeConflictsiBest, iDebug, iWeight, sDoubleFormat, sPercentFormatsMaxSize| Constructor and Description |
|---|
StudentOnlineConflict() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(DataProperties properties)
Configure the criterion if needed
|
void |
getInfo(Assignment<Lecture,Placement> assignment,
Map<String,String> info)
Adds some information into the table with information about the solution
|
void |
getInfo(Assignment<Lecture,Placement> assignment,
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). |
boolean |
inConflict(Placement p1,
Placement p2)
There is a conflict when
isOnline(Placement) differs for the two placements
and they are placed on the same day (shareDays(Placement, Placement) returns true). |
boolean |
isApplicable(Lecture l1,
Lecture l2) |
boolean |
isOnline(Placement p) |
boolean |
shareDays(Placement p1,
Placement p2)
Are the two placements at the same day?
|
applicable, bestRestored, committed, distance, getBounds, getBounds, getMetrics, getValue, getValue, hard, ignore, incJenrl, isApplicable, jointEnrollment, jointEnrollment, overlaps, slots, uncommitted, workdaygetPlacementSelectionAdjustmentsName, getPlacementSelectionWeight, getPlacementSelectionWeightDefaultafterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestSaved, clearCache, computeBounds, constraintAdded, constraintRemoved, createAssignmentContext, getAbbreviation, getAssignmentContextReference, getBest, getBounds, getBounds, getContext, getContext, getExtendedInfo, getModel, getName, getPerc, getPercentage, getPercRev, getValue, getValue, getValue, getValueUpdateType, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, inc, init, setAssignmentContextReference, setModel, setValueUpdateType, toString, variableAdded, variableRemovedpublic StudentOnlineConflict()
public void configure(DataProperties properties)
Criterionpublic boolean shareDays(Placement p1, Placement p2)
public boolean inConflict(Placement p1, Placement p2)
isOnline(Placement) differs for the two placements
and they are placed on the same day (shareDays(Placement, Placement) returns true).inConflict in class StudentConflictpublic boolean isApplicable(Lecture l1, Lecture l2)
isApplicable in class StudentConflictpublic double getWeightDefault(DataProperties config)
AbstractCriterionAbstractCriterion.getWeightName() parameter is not present in the criterion).getWeightDefault in class AbstractCriterion<Lecture,Placement>config - solver configurationpublic String getPlacementSelectionWeightName()
getPlacementSelectionWeightName in class StudentConflictpublic void getInfo(Assignment<Lecture,Placement> assignment, Map<String,String> info)
InfoProvidergetInfo in interface InfoProvider<Lecture,Placement>getInfo in class AbstractCriterion<Lecture,Placement>assignment - current assignmentinfo - info tablepublic void getInfo(Assignment<Lecture,Placement> assignment, Map<String,String> info, Collection<Lecture> variables)
InfoProvidergetInfo in interface InfoProvider<Lecture,Placement>getInfo in class AbstractCriterion<Lecture,Placement>assignment - current assignmentinfo - info tablevariables - sub-problem