|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.studentsct.heuristics.studentord.StudentChoiceOrder
public class StudentChoiceOrder
Return the given set of students in an order of average number of choices of each student (students with more choices first).
| Constructor Summary | |
|---|---|
StudentChoiceOrder(DataProperties config)
|
|
| Method Summary | |
|---|---|
double |
avgNrChoices(Student student)
Average number of choices for each student |
int |
compare(Object o1,
Object o2)
|
boolean |
isReverse()
Is order reversed |
Vector |
order(Vector students)
Order the given list of students |
void |
setReverse(boolean reverse)
Set reverse order |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public StudentChoiceOrder(DataProperties config)
| Method Detail |
|---|
public boolean isReverse()
public void setReverse(boolean reverse)
public Vector order(Vector students)
order in interface StudentOrder
public int compare(Object o1,
Object o2)
compare in interface Comparatorpublic double avgNrChoices(Student student)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||