|
||||||||||
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(Student s1,
Student s2)
|
boolean |
isReverse()
Is order reversed |
List<Student> |
order(List<Student> 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 List<Student> order(List<Student> students)
order
in interface StudentOrder
public int compare(Student s1, Student s2)
compare
in interface Comparator<Student>
public double avgNrChoices(Student student)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |