public class StudentSectioningXMLLoader extends StudentSectioningLoader
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 and Description |
---|
StudentSectioningXMLLoader(StudentSectioningModel model,
Assignment<Request,Enrollment> assignment)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
getAssignment, getModel, run, setCallback
public StudentSectioningXMLLoader(StudentSectioningModel model, Assignment<Request,Enrollment> assignment)
model
- student sectioning modelassignment
- current assignmentpublic void setInputFile(File inputFile)
inputFile
- input filepublic void setStudentFilter(StudentFilter filter)
filter
- student filterpublic void setLoadStudents(boolean loadStudents)
loadStudents
- true if students are to be loadedpublic void setLoadOfferings(boolean loadOfferings)
loadOfferings
- true if instructional offerings are to be loadedpublic void load() throws Exception
load
in class StudentSectioningLoader
Exception
- thrown when the load failsCopyright © 2014 UniTime LLC. All Rights Reserved.