3 import java.io.IOException;
6 import jalview.api.AlignViewportI;
7 import jalview.datamodel.AlignmentI;
8 import jalview.datamodel.SequenceI;
11 * A generic function which supplies job result from the remote job to the
12 * worker object when the job is finished. Typically, the interface is
13 * implemented by one of the {@link WebServiceI} object methods and passed to
14 * the {@link WebServiceWorkerI} object on its creation.
22 public interface ResultSupplier<T>
24 public T getResult(WSJob job, List<SequenceI> dataset, AlignViewportI viewport) throws IOException;