|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.studentsct.model.Student
public class Student
Representation of a student. Each student contains id, and a list of
requests.
Last-like semester students are mark as dummy. Dummy students have lower
value and generally should not block "real" students from getting requested
courses.
Constructor Summary | |
---|---|
Student(long id)
Constructor |
|
Student(long id,
boolean dummy)
Constructor |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Student(long id)
id
- student unique idpublic Student(long id, boolean dummy)
id
- student unique iddummy
- dummy flagMethod Detail |
---|
public 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 String toString()
toString
in class Object
public boolean isDummy()
public void setDummy(boolean dummy)
public List<AcademicAreaCode> getAcademicAreaClasiffications()
AcademicAreaCode
)
for the given student
public List<AcademicAreaCode> getMajors()
AcademicAreaCode
) for the given student
public List<AcademicAreaCode> getMinors()
AcademicAreaCode
) for the given student
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int countFreeTimeOverlaps(Enrollment enrollment)
public int countFreeTimeOverlaps(TimeLocation time)
public String getExternalId()
public void setExternalId(String externalId)
public String getName()
public void setName(String name)
public List<LinkedSections> getLinkedSections()
public String getStatus()
public void setStatus(String status)
public Long getEmailTimeStamp()
public void setEmailTimeStamp(Long emailTimeStamp)
public int compareTo(Student s)
compareTo
in interface Comparable<Student>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |