public abstract class TimetableLoader extends Object implements Runnable
| Constructor and Description |
|---|
TimetableLoader(TimetableModel model,
Assignment<Lecture,Placement> assignment)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected Assignment<Lecture,Placement> |
getAssignment()
Returns provided assignment
|
protected TimetableModel |
getModel()
Returns provided model.
|
abstract void |
load()
Load the model.
|
void |
run() |
void |
setCallback(Callback callback)
Sets callback class
|
public TimetableLoader(TimetableModel model, Assignment<Lecture,Placement> assignment)
model - an empty instance of timetable modelassignment - current assignmentprotected TimetableModel getModel()
protected Assignment<Lecture,Placement> getAssignment()
public abstract void load() throws Exception
Exception - thrown when the load failspublic void setCallback(Callback callback)
callback - method Callback.execute() is executed when load is
doneCopyright © 2015 UniTime LLC. All Rights Reserved.