this.settings = settings;
}
@Override
protected void doOnce() {
ApplicationWindow aw = getApplicationWindow();
aw.getStatusBar().clear();
// inject via spring and using the same optimizer command class?
final Algorithm algorithm = new UniTimeOptimization();
((UniTimeOptimization) algorithm).setInitialAssignment(true);
// TODO make seconds editable via GUI
int sec = 5 * 60;
algorithm.setCondition(new AlgorithmConditionTime(sec));
String msg = tr.get(ID + ".startTask", sec / 60.0f);
aw.getStatusBar().getProgressMonitor().taskStarted(msg, -1);
MySwingWorker sw = new MySwingWorker(ID) {
@Override
protected void myconstruct() throws Exception {
algorithm.setDataPoolSettings(settings);