|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.studentsct.StudentSectioningLoader
net.sf.cpsolver.studentsct.StudentSectioningXMLLoader
public class StudentSectioningXMLLoader
Load student sectioning model from an XML file.
Parameters:
| Parameter | Type | Comment |
|---|---|---|
| General.Input | String |
Path of an XML file to be loaded |
| Xml.LoadBest | Boolean |
If true, load best assignments |
| Xml.LoadInitial | Boolean |
If false, load initial assignments |
| Xml.LoadCurrent | Boolean |
If true, load current assignments |
| Xml.LoadOfferings | Boolean |
If true, load offerings (and their stucture, i.e., courses, configurations, subparts and sections) |
| Xml.LoadStudents | Boolean |
If true, load students (and their requests) |
| Xml.StudentFilter | StudentFilter |
If provided, students are filtered by the given student filter |
StudentSectioningModel model = new StudentSectioningModel(cfg);
new StudentSectioningXMLLoader(model).load();
| Constructor Summary | |
|---|---|
StudentSectioningXMLLoader(StudentSectioningModel model)
Constructor |
|
| Method Summary | |
|---|---|
void |
load()
Load the file |
void |
setInputFile(File inputFile)
Set input file (e.g., if it is not set by General.Input property) |
void |
setLoadOfferings(boolean loadOfferings)
Set whether to load offerings |
void |
setLoadStudents(boolean loadStudents)
Set whether to load students |
void |
setStudentFilter(StudentFilter filter)
Set student filter |
| Methods inherited from class net.sf.cpsolver.studentsct.StudentSectioningLoader |
|---|
getModel, run, setCallback |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StudentSectioningXMLLoader(StudentSectioningModel model)
model - student sectioning model| Method Detail |
|---|
public void setInputFile(File inputFile)
public void setStudentFilter(StudentFilter filter)
public void setLoadStudents(boolean loadStudents)
public void setLoadOfferings(boolean loadOfferings)
public void load()
throws Exception
load in class StudentSectioningLoaderException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||