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)
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
|
getModel, run, setCallback
public StudentSectioningXMLLoader(StudentSectioningModel model)
model
- student sectioning modelpublic 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 StudentSectioningLoader
Exception
Copyright © 2014 UniTime LLC. All Rights Reserved.