|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.ifs.model.Model net.sf.cpsolver.studentsct.StudentSectioningModel
public class StudentSectioningModel
Student sectioning model.
Field Summary |
---|
Fields inherited from class net.sf.cpsolver.ifs.model.Model |
---|
iAssignedVariables, iPerturbVariables, iUnassignedVariables, sDoubleFormat, sPercentageFormat, sTimeFormat |
Constructor Summary | |
---|---|
StudentSectioningModel(DataProperties properties)
Constructor |
Method Summary | |
---|---|
void |
addOffering(Offering offering)
Add an offering into the model |
void |
addStudent(Student student)
Add a student into the model |
void |
afterAssigned(long iteration,
Value value)
Called after an enrollment was assigned to a request. |
void |
afterUnassigned(long iteration,
Value value)
Called before an enrollment was unassigned from a request. |
double |
avgNrRequests()
Average number of requests per student (see Student.getRequests() ) |
double |
avgUnassignPriority()
Average priority of unassigned requests (see Request.getPriority() ) |
void |
clearOnlineSectioningInfos()
Empty online student sectioning infos for all sections (see Section.getSpaceExpected() and Section.getSpaceHeld() ). |
void |
computeOnlineSectioningInfos()
Compute online student sectioning infos for all sections (see Section.getSpaceExpected() and Section.getSpaceHeld() ). |
Set |
getCompleteStudents()
Students with complete schedules (see Student.isComplete() ) |
DistanceConflict |
getDistanceConflict()
Return distance conflict extension |
Hashtable |
getExtendedInfo()
Model extended info. |
Hashtable |
getInfo()
Model info |
int |
getNrAssignedLastLikeRequests(boolean precise)
Number of requests from last-like ( Student.isDummy() equals true) students that are assigned. |
int |
getNrAssignedRealRequests(boolean precise)
Number of requests from real ( Student.isDummy() equals false) students that are assigned. |
int |
getNrCompleteLastLikeStudents(boolean precise)
Number of last like ( Student.isDummy() equals true) students with a complete schedule (Student.isComplete() equals true). |
int |
getNrCompleteRealStudents(boolean precise)
Number of real ( Student.isDummy() equals false) students with a complete schedule (Student.isComplete() equals true). |
int |
getNrLastLikeRequests(boolean precise)
Number of requests from last-like ( Student.isDummy() equals true) students. |
int |
getNrLastLikeStudents(boolean precise)
Number of last like ( Student.isDummy() equals true) students. |
int |
getNrRealRequests(boolean precise)
Number of requests from real ( Student.isDummy() equals false) students. |
int |
getNrRealStudents(boolean precise)
Number of real ( Student.isDummy() equals false) students. |
Vector |
getOfferings()
List of offerings |
DataProperties |
getProperties()
Configuration |
Vector |
getStudents()
Students |
double |
getTotalRequestWeight()
Sum of weights of all requests (see Request.getWeight() ). |
double |
getTotalValue()
Overall solution value |
double |
getUnassignedRequestWeight()
Sum of weights of all requests that are not assigned (see Request.getWeight() ). |
int |
nrComplete()
Number of students with complete schedule |
void |
removeStudent(Student student)
Remove a student from the model |
void |
setDistanceConflict(DistanceConflict dc)
Set distance conflict extension |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StudentSectioningModel(DataProperties properties)
properties
- configurationMethod Detail |
---|
public Vector getStudents()
public Set getCompleteStudents()
Student.isComplete()
)
public void addStudent(Student student)
public void removeStudent(Student student)
public Vector getOfferings()
public void addOffering(Offering offering)
public int nrComplete()
public Hashtable getInfo()
getInfo
in class Model
public double getTotalValue()
getTotalValue
in class Model
public void afterAssigned(long iteration, Value value)
afterAssigned
in class Model
public void afterUnassigned(long iteration, Value value)
afterUnassigned
in class Model
public DataProperties getProperties()
public void clearOnlineSectioningInfos()
Section.getSpaceExpected()
and Section.getSpaceHeld()
).
public void computeOnlineSectioningInfos()
Section.getSpaceExpected()
and Section.getSpaceHeld()
).
public double getUnassignedRequestWeight()
Request.getWeight()
).
public double getTotalRequestWeight()
Request.getWeight()
).
public void setDistanceConflict(DistanceConflict dc)
public DistanceConflict getDistanceConflict()
public double avgUnassignPriority()
Request.getPriority()
)
public double avgNrRequests()
Student.getRequests()
)
public int getNrLastLikeStudents(boolean precise)
Student.isDummy()
equals true) students.
public int getNrRealStudents(boolean precise)
Student.isDummy()
equals false) students.
public int getNrCompleteLastLikeStudents(boolean precise)
Student.isDummy()
equals true) students with a complete schedule (Student.isComplete()
equals true).
public int getNrCompleteRealStudents(boolean precise)
Student.isDummy()
equals false) students with a complete schedule (Student.isComplete()
equals true).
public int getNrLastLikeRequests(boolean precise)
Student.isDummy()
equals true) students.
public int getNrRealRequests(boolean precise)
Student.isDummy()
equals false) students.
public int getNrAssignedLastLikeRequests(boolean precise)
Student.isDummy()
equals true) students that are assigned.
public int getNrAssignedRealRequests(boolean precise)
Student.isDummy()
equals false) students that are assigned.
public Hashtable getExtendedInfo()
Model.getInfo()
.
getExtendedInfo
in class Model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |