|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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.
Field Summary | |
---|---|
static double |
sDummyStudentWeight
|
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. |
boolean |
equals(Object object)
Compare two students for equality. |
Vector |
getAcademicAreaClasiffications()
List of academic area - classification codes ( AcademicAreaCode ) for the given student |
long |
getId()
Student unique id |
Vector |
getMajors()
List of major codes ( AcademicAreaCode ) for the given student |
Vector |
getMinors()
List of major codes ( AcademicAreaCode ) for the given student |
Vector |
getRequests()
Student's course and free time requests |
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 |
setId(long id)
Set student unique id |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static double sDummyStudentWeight
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 Vector 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 Vector getAcademicAreaClasiffications()
AcademicAreaCode
) for the given student
public Vector getMajors()
AcademicAreaCode
) for the given student
public Vector getMinors()
AcademicAreaCode
) for the given student
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |