public static class DistanceConflict.Conflict extends Object
Constructor and Description |
---|
Conflict(Student student,
Enrollment e1,
Section s1,
Enrollment e2,
Section s2)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double |
getDistance(DistanceMetric dm)
The distance between conflicting sections
|
Enrollment |
getE1()
First enrollment
|
Enrollment |
getE2()
Second enrollment
|
Request |
getR1()
First request
|
Request |
getR2()
Second request
|
Section |
getS1()
First section
|
Section |
getS2()
Second section
|
Student |
getStudent()
Related student
|
int |
hashCode() |
String |
toString() |
public Conflict(Student student, Enrollment e1, Section s1, Enrollment e2, Section s2)
student
- related students1
- first conflicting sections2
- second conflicting sectionpublic Student getStudent()
public Enrollment getE1()
public Enrollment getE2()
public double getDistance(DistanceMetric dm)