public class SctEnrollment extends Object implements Comparable<SctEnrollment>
Constructor and Description |
---|
SctEnrollment(int id,
SctStudent student,
Collection<Lecture> lectures) |
SctEnrollment(int id,
SctStudent student,
Collection<Lecture> lectures,
double conflictWeight) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SctEnrollment o) |
double |
getConflictWeight()
Overall conflict weight
|
Integer |
getId() |
List<Lecture> |
getLectures()
List of classes of this enrollment
|
SctStudent |
getStudent()
Student
|
String |
toString() |
public SctEnrollment(int id, SctStudent student, Collection<Lecture> lectures, double conflictWeight)
id
- unique idstudent
- a studentlectures
- list of classesconflictWeight
- conflict weightpublic SctEnrollment(int id, SctStudent student, Collection<Lecture> lectures)
id
- unique idstudent
- a studentlectures
- list of classespublic SctStudent getStudent()
public List<Lecture> getLectures()
public double getConflictWeight()
public int compareTo(SctEnrollment o)
compareTo
in interface Comparable<SctEnrollment>