public class TimetableXMLLoader extends TimetableLoader
Parameter | Type | Comment |
---|---|---|
General.Input | String |
Input XML file |
General.DeptBalancing | Boolean |
Use DepartmentSpreadConstraint |
General.InteractiveMode | Boolean |
Interactive mode (see Lecture.purgeInvalidValues(boolean) ) |
General.ForcedPerturbances | Integer |
For testing of MPP: number of input perturbations, i.e., classes with prohibited intial assignment |
General.UseDistanceConstraints | Boolean |
Consider distances between buildings |
Modifier and Type | Class and Description |
---|---|
static class |
TimetableXMLLoader.DatePattern |
Constructor and Description |
---|
TimetableXMLLoader(TimetableModel model,
Assignment<Lecture,Placement> assignment) |
Modifier and Type | Method and Description |
---|---|
protected void |
doLoad(Solution<Lecture,Placement> currentSolution,
Element root) |
static Date |
getDate(int year,
int dayOfYear) |
Solver<Lecture,Placement> |
getSolver() |
void |
load()
Load the model.
|
void |
load(Solution<Lecture,Placement> currentSolution) |
void |
load(Solution<Lecture,Placement> currentSolution,
Document document) |
void |
setInputFile(File inputFile) |
void |
setSolver(Solver<Lecture,Placement> solver) |
getAssignment, getModel, getTerminationCondition, run, setCallback, setTerminationCondition
public TimetableXMLLoader(TimetableModel model, Assignment<Lecture,Placement> assignment)
public void setInputFile(File inputFile)
public void load() throws Exception
ProblemLoader
load
in class ProblemLoader<Lecture,Placement,TimetableModel>
Exception
- thrown when the load failspublic void load(Solution<Lecture,Placement> currentSolution) throws Exception
Exception