public static enum StudentQuality.Type extends Enum<StudentQuality.Type>
Enum Constant and Description |
---|
AccBackToBack
DRC: A back-to-back conflict (for students with BTB accommodation) is there every time when a student has two classes that are NOT
back-to-back or less than Accommodations.BackToBackDistance time slots apart (defaults to 30 minutes).
|
AccBreaksBetweenClasses
DRC: A not back-to-back conflict (for students with BBC accommodation) is there every time when a student has two classes that are
back-to-back or less than Accommodations.BackToBackDistance time slots apart (defaults to 30 minutes).
|
AccFreeTimeOverlap
DRC: Time conflict between class and a free time request (for students with FT accommodation).
|
BackToBack
A back-to-back conflict is there every time when a student has two classes that are
back-to-back or less than StudentWeights.BackToBackDistance time slots apart (defaults to 30 minutes).
|
CourseTimeOverlap
Time conflicts between two classes that is allowed.
|
Distance
Distance conflict.
|
FreeTimeOverlap
Time conflict between class and a free time request.
|
LunchBreak
Naive, yet effective approach for modeling student lunch breaks.
|
ShortDistance
Short distance conflict.
|
TooEarly |
TooLate |
TravelTime
Naive, yet effective approach for modeling travel times.
|
Unavailability
Student unavailability conflict.
|
WorkDay
A work-day conflict is there every time when a student has two classes that are too
far apart.
|
Modifier and Type | Method and Description |
---|---|
String |
getAbbv() |
String |
getName() |
StudentQuality.WeightType |
getType() |
double |
getWeight(StudentQuality.Context cx,
StudentQuality.Conflict c,
Enrollment e) |
double |
getWeightDefault() |
String |
getWeightName() |
boolean |
inConflict(StudentQuality.Context cx,
SctAssignment a1,
SctAssignment a2) |
boolean |
isApplicable(StudentQuality.Context cx,
Student student,
Request r1,
Request r2) |
Iterable<? extends SctAssignment> |
other(StudentQuality.Context cx,
Enrollment e) |
int |
penalty(StudentQuality.Context cx,
SctAssignment a1,
SctAssignment a2) |
static StudentQuality.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StudentQuality.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StudentQuality.Type CourseTimeOverlap
public static final StudentQuality.Type FreeTimeOverlap
public static final StudentQuality.Type Unavailability
public static final StudentQuality.Type Distance
public static final StudentQuality.Type ShortDistance
public static final StudentQuality.Type LunchBreak
public static final StudentQuality.Type TravelTime
public static final StudentQuality.Type BackToBack
public static final StudentQuality.Type WorkDay
public static final StudentQuality.Type TooEarly
public static final StudentQuality.Type TooLate
public static final StudentQuality.Type AccFreeTimeOverlap
public static final StudentQuality.Type AccBackToBack
public static final StudentQuality.Type AccBreaksBetweenClasses
public static StudentQuality.Type[] values()
for (StudentQuality.Type c : StudentQuality.Type.values()) System.out.println(c);
public static StudentQuality.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isApplicable(StudentQuality.Context cx, Student student, Request r1, Request r2)
public boolean inConflict(StudentQuality.Context cx, SctAssignment a1, SctAssignment a2)
public int penalty(StudentQuality.Context cx, SctAssignment a1, SctAssignment a2)
public Iterable<? extends SctAssignment> other(StudentQuality.Context cx, Enrollment e)
public double getWeight(StudentQuality.Context cx, StudentQuality.Conflict c, Enrollment e)
public StudentQuality.WeightType getType()
public String getWeightName()
public double getWeightDefault()