public class Student extends Object implements Comparable<Student>
Constructor and Description |
---|
Student(long id)
Constructor
|
Student(long id,
boolean dummy)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAssign(Request request)
True if the given request can be assigned to the student.
|
int |
compareTo(Student s) |
int |
countFreeTimeOverlaps(Enrollment enrollment)
Count number of free time slots overlapping with the given enrollment
|
int |
countFreeTimeOverlaps(TimeLocation time)
Count number of free time slots overlapping with the given time
|
boolean |
equals(Object object)
Compare two students for equality.
|
List<AcademicAreaCode> |
getAcademicAreaClasiffications()
List of academic area - classification codes (
AcademicAreaCode )
for the given student |
Long |
getEmailTimeStamp()
Get last email time stamp (online sectioning only)
|
String |
getExternalId()
Get student external id
|
long |
getId()
Student unique id
|
List<LinkedSections> |
getLinkedSections()
Linked sections of this student
|
List<AcademicAreaCode> |
getMajors()
List of major codes (
AcademicAreaCode ) for the given student |
List<AcademicAreaCode> |
getMinors()
List of major codes (
AcademicAreaCode ) for the given student |
String |
getName()
Get student name
|
List<Request> |
getRequests()
Student's course and free time requests
|
String |
getStatus()
Get student status (online sectioning only)
|
int |
hashCode()
Hash code (base only on student id)
|
boolean |
isComplete()
True if the student has assigned the desired number of requests (i.e.,
number of non-alternative course requests).
|
boolean |
isDummy()
Student's dummy flag.
|
int |
nrAlternativeRequests()
Number of alternative requests
|
int |
nrAssignedRequests()
Number of assigned COURSE requests
|
int |
nrRequests()
Number of requests (alternative requests are ignored)
|
void |
setDummy(boolean dummy)
Set student's dummy flag.
|
void |
setEmailTimeStamp(Long emailTimeStamp)
Set last email time stamp
|
void |
setExternalId(String externalId)
Set student external id
|
void |
setId(long id)
Set student unique id
|
void |
setName(String name)
Set student name
|
void |
setStatus(String status)
Set student status
|
String |
toString() |
public Student(long id)
id
- student unique idpublic Student(long id, boolean dummy)
id
- student unique iddummy
- dummy flagpublic long getId()
public void setId(long id)
public List<Request> getRequests()
public int nrRequests()
public int nrAlternativeRequests()
public boolean canAssign(Request request)
public boolean isComplete()
public int nrAssignedRequests()
public boolean isDummy()
public void setDummy(boolean dummy)
public List<AcademicAreaCode> getAcademicAreaClasiffications()
AcademicAreaCode
)
for the given studentpublic List<AcademicAreaCode> getMajors()
AcademicAreaCode
) for the given studentpublic List<AcademicAreaCode> getMinors()
AcademicAreaCode
) for the given studentpublic boolean equals(Object object)
public int hashCode()
public int countFreeTimeOverlaps(Enrollment enrollment)
public int countFreeTimeOverlaps(TimeLocation time)
public String getExternalId()
public void setExternalId(String externalId)
public List<LinkedSections> getLinkedSections()
public Long getEmailTimeStamp()
public void setEmailTimeStamp(Long emailTimeStamp)
public int compareTo(Student s)
compareTo
in interface Comparable<Student>