public static class TimeOverlapsCounter.Conflict extends Object
Constructor and Description |
---|
Conflict(Student student,
int share,
Enrollment e1,
SctAssignment a1,
Enrollment e2,
SctAssignment a2)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Enrollment |
getE1()
First enrollment
|
Enrollment |
getE2()
Second enrollment
|
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
|
int |
getShare()
The number of overlapping slots against the number of slots of the smallest section
|
Student |
getStudent()
Related student
|
int |
hashCode() |
String |
toString() |
public Conflict(Student student, int share, Enrollment e1, SctAssignment a1, Enrollment e2, SctAssignment a2)
student
- related studentshare
- number of slots in common between the two conflicting sectionse1
- first enrollmenta1
- first conflicting sectione2
- second enrollmenta2
- second conflicting sectionpublic Student getStudent()
public SctAssignment getS1()
public SctAssignment getS2()
public double getR1Weight()
public double getR2Weight()
public Enrollment getE1()
public Enrollment getE2()
public int getShare()