public class TimetableModel extends Model<Activity,Location>
sDoubleFormat, sPercentageFormat, sTimeFormat
Constructor and Description |
---|
TimetableModel(int nrDays,
int nrHours) |
Modifier and Type | Method and Description |
---|---|
static TimetableModel |
generate(DataProperties cfg,
Assignment<Activity,Location> assignment) |
int |
getNrDays() |
int |
getNrHours() |
static TimetableModel |
loadFromXML(File inFile,
Assignment<Activity,Location> assignment) |
static void |
main(String[] args) |
void |
saveAsXML(DataProperties cfg,
boolean gen,
Solution<Activity,Location> solution,
Assignment<Activity,Location> assignment,
File outFile) |
addConstraint, addCriterion, addGlobalConstraint, addModelListener, addVariable, afterAssigned, afterAssigned, afterUnassigned, afterUnassigned, assignedVariables, assignedVariables, beforeAssigned, beforeAssigned, beforeUnassigned, beforeUnassigned, bestUnassignedVariables, bestUnassignedVariables, clearAssignmentContexts, clearBest, conflictConstraints, conflictValues, conflictValues, constraints, countConstraints, countGlobalConstraints, countVariables, createAssignmentContexts, createInheritedAssignment, createReference, getBestPerturbations, getBestUnassignedVariables, getBestValue, getCriteria, getCriterion, getDefaultAssignment, getEmptyAssignment, getExtendedInfo, getExtendedInfo, getInfo, getInfo, getInfo, getInfo, getInfoProviders, getModelListeners, getPerc, getPercRev, getTotalValue, getTotalValue, getTotalValue, getTotalValue, globalConstraints, inConflict, inConflict, init, invalidateVariablesWithInitialValueCache, modelListenerOfType, nrAssignedVariables, nrAssignedVariables, nrUnassignedVariables, nrUnassignedVariables, perturbVariables, perturbVariables, perturbVariables, perturbVariables, perturbVariables, removeConstraint, removeCriterion, removeCriterion, removeGlobalConstraint, removeModelListener, removeReference, removeVariable, restoreBest, restoreBest, restoreBest, saveBest, saveBest, setBestValue, setDefaultAssignment, toString, toString, unassignedHardConstraints, unassignedVariables, unassignedVariables, variables, variablesWithInitialValue, weaken
public TimetableModel(int nrDays, int nrHours)
public int getNrDays()
public int getNrHours()
public static TimetableModel generate(DataProperties cfg, Assignment<Activity,Location> assignment)
public void saveAsXML(DataProperties cfg, boolean gen, Solution<Activity,Location> solution, Assignment<Activity,Location> assignment, File outFile) throws IOException
IOException
public static TimetableModel loadFromXML(File inFile, Assignment<Activity,Location> assignment) throws IOException, DocumentException
IOException
DocumentException