net.sf.cpsolver.coursett.custom
Class DeterministicStudentSectioning.DeterministicInitialSectioning

java.lang.Object
  extended by net.sf.cpsolver.coursett.model.InitialSectioning
      extended by net.sf.cpsolver.coursett.custom.DeterministicStudentSectioning.DeterministicInitialSectioning
All Implemented Interfaces:
Comparator<Student>
Enclosing class:
DeterministicStudentSectioning

public class DeterministicStudentSectioning.DeterministicInitialSectioning
extends InitialSectioning
implements Comparator<Student>

Assign students to groups in a deterministic way, i.e., first student to first available group etc.

Author:
Tomas Muller

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.cpsolver.coursett.model.InitialSectioning
InitialSectioning.Group
 
Field Summary
 
Fields inherited from class net.sf.cpsolver.coursett.model.InitialSectioning
iGroups, iOfferingId, iProgress, iStudents
 
Constructor Summary
DeterministicStudentSectioning.DeterministicInitialSectioning(Progress progress, Long offeringId, Collection<?> lectureOrConfigurations, Collection<Student> students)
           
 
Method Summary
 int compare(Student s1, Student s2)
          Sort students by their curriculum information and id
 InitialSectioning.Group[] getGroups()
           
protected  void tweakSizes(double total)
           
 
Methods inherited from class net.sf.cpsolver.coursett.model.InitialSectioning
addStudent, initialSectioningCfg, moveIntoOneStudent
 
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

DeterministicStudentSectioning.DeterministicInitialSectioning

public DeterministicStudentSectioning.DeterministicInitialSectioning(Progress progress,
                                                                     Long offeringId,
                                                                     Collection<?> lectureOrConfigurations,
                                                                     Collection<Student> students)
Method Detail

tweakSizes

protected void tweakSizes(double total)
Overrides:
tweakSizes in class InitialSectioning

getGroups

public InitialSectioning.Group[] getGroups()
Overrides:
getGroups in class InitialSectioning

compare

public int compare(Student s1,
                   Student s2)
Sort students by their curriculum information and id

Specified by:
compare in interface Comparator<Student>


Copyright © 2014 UniTime LLC. All Rights Reserved.