public class StudentQuality.Conflict extends Object
Constructor and Description |
---|
Conflict(Student student,
StudentQuality.Type type,
int penalty,
Enrollment e1,
SctAssignment a1,
Enrollment e2,
SctAssignment a2)
Constructor
|
Conflict(Student student,
StudentQuality.Type type,
int penalty,
Enrollment e1,
SctAssignment a1,
SctAssignment a2) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Enrollment |
getE1()
First enrollment
|
Enrollment |
getE2()
Second enrollment
|
Enrollment |
getOther(Enrollment enrollment)
Other enrollment of the conflict
|
int |
getPenalty()
Conflict penalty, e.g., the number of overlapping slots against the number of slots of the smallest section
|
Request |
getR1()
First request
|
double |
getR1Weight()
First request weight
|
Request |
getR2()
Second request
|
double |
getR2Weight()
Second request weight
|
SctAssignment |
getS1()
First section
|
SctAssignment |
getS2()
Second section
|
Student |
getStudent()
Related student
|
StudentQuality.Type |
getType()
Conflict type
|
double |
getWeight()
Weight of the conflict on both enrollment (sum)
|
double |
getWeight(Enrollment e)
Weight of the conflict on the given enrollment
|
int |
hashCode() |
String |
toString() |
public Conflict(Student student, StudentQuality.Type type, int penalty, Enrollment e1, SctAssignment a1, Enrollment e2, SctAssignment a2)
student
- related studenttype
- conflict typepenalty
- conflict penalization, e.g., the number of slots in common between the two conflicting sectionse1
- first enrollmenta1
- first conflicting sectione2
- second enrollmenta2
- second conflicting sectionpublic Conflict(Student student, StudentQuality.Type type, int penalty, Enrollment e1, SctAssignment a1, SctAssignment a2)
public Student getStudent()
public SctAssignment getS1()
public SctAssignment getS2()
public double getR1Weight()
public double getR2Weight()
public Enrollment getE1()
public Enrollment getE2()
public int getPenalty()
public Enrollment getOther(Enrollment enrollment)
public double getWeight(Enrollment e)
public double getWeight()
public StudentQuality.Type getType()