public abstract class TimetableSaver extends Object implements Runnable
Constructor and Description |
---|
TimetableSaver(Solver<Lecture,Placement> solver)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Assignment<Lecture,Placement> |
getAssignment()
Current assignment
|
protected TimetableModel |
getModel()
Model of the solution
|
protected Solution<Lecture,Placement> |
getSolution()
Solution to be saved
|
Solver<Lecture,Placement> |
getSolver()
Solver
|
void |
run() |
abstract void |
save()
Save the solution
|
void |
setCallback(Callback callback)
Sets callback class
|
public TimetableSaver(Solver<Lecture,Placement> solver)
solver
- current solverprotected Solution<Lecture,Placement> getSolution()
protected TimetableModel getModel()
public Assignment<Lecture,Placement> getAssignment()
public abstract void save() throws Exception
Exception
- thrown when save failspublic void setCallback(Callback callback)
callback
- method Callback.execute()
is executed when save is
doneCopyright © 2016 UniTime LLC. All Rights Reserved.