this.viewport = viewport;
}
- // public void start(AlignCalcManagerI2 calcManager)
- // {
- // if (this.worker != null)
- // throw new IllegalStateException("task already started");
- // this.worker = new AlignCalcWorkerAdapter(calcManager);
- // if (taskStatus != JobStatus.CANCELLED)
- // {
- // List<AlignCalcWorkerI> oldWorkers = calcManager.getWorkersOfClass(
- // AlignCalcWorkerAdapter.class);
- // for (var worker : oldWorkers)
- // {
- // if (action.getWebService().getName().equalsIgnoreCase(
- // ((AlignCalcWorkerAdapter) worker).getServiceName()))
- // {
- // // remove interactive workers for the same service.
- // calcManager.removeWorker(worker);
- // calcManager.cancelWorker(worker);
- // }
- // }
- // if (action.getWebService().isInteractive())
- // calcManager.registerWorker(worker);
- // else
- // calcManager.startWorker(worker);
- // }
- // }
-
/**
* Create and return a list of annotation jobs from the current state of the
* viewport. Returned job are not started by this method and should be stored