public class ResectioningWeights extends StudentSchedulingAssistantWeights
StudentWeights
model. It is based on the
StudentSchedulingAssistantWeights
. This model is used when a single
course of a student is rescheduled. Following criteria are included:
Choice
)
Modifier and Type | Class and Description |
---|---|
static interface |
ResectioningWeights.LastSectionProvider
Compare the old assignment with the current one
|
StudentWeights.Implementation
Constructor and Description |
---|
ResectioningWeights(DataProperties properties) |
Modifier and Type | Method and Description |
---|---|
double |
getWeight(Assignment<Request,Enrollment> assignment,
Enrollment enrollment)
Return base weight of the given enrollment
|
static boolean |
isSame(Enrollment e1,
Enrollment e2) |
static boolean |
sameChoice(Section section,
Choice choice) |
static boolean |
sameName(Long courseId,
Section s1,
Section s2) |
static boolean |
sameRooms(Section s,
List<RoomLocation> rooms) |
static boolean |
sameTime(Section s,
TimeLocation t) |
void |
setLastSectionProvider(ResectioningWeights.LastSectionProvider lastSectionProvider) |
clearBestCache, getBaseWeight, getBound, getDistanceConflictWeight, getStudentQualityConflictWeight, getTimeOverlapConflictWeight, getWeight, getWeight, isBetterThanBestSolution, isFreeTimeAllowOverlaps, round
public ResectioningWeights(DataProperties properties)
public void setLastSectionProvider(ResectioningWeights.LastSectionProvider lastSectionProvider)
public double getWeight(Assignment<Request,Enrollment> assignment, Enrollment enrollment)
StudentWeights
getWeight
in interface StudentWeights
getWeight
in class StudentSchedulingAssistantWeights
assignment
- current assignmentenrollment
- given enrollmentpublic static boolean isSame(Enrollment e1, Enrollment e2)
public static boolean sameRooms(Section s, List<RoomLocation> rooms)
public static boolean sameTime(Section s, TimeLocation t)
public static boolean sameChoice(Section section, Choice choice)