X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FAlignCalcWorkerI.java;fp=src%2Fjalview%2Fapi%2FAlignCalcWorkerI.java;h=19df53f2de216e7c196eacc1fbb91efb50ddbe94;hb=743dffc0b47bcc06ea8241ee4e36f1a16ace7cf3;hp=b51b94ec098203f2845b125d736e25eb129b08c8;hpb=86cd00a0cdc19cdb40b51e704067ec2c331f8e61;p=jalview.git diff --git a/src/jalview/api/AlignCalcWorkerI.java b/src/jalview/api/AlignCalcWorkerI.java index b51b94e..19df53f 100644 --- a/src/jalview/api/AlignCalcWorkerI.java +++ b/src/jalview/api/AlignCalcWorkerI.java @@ -31,6 +31,17 @@ import jalview.datamodel.AlignmentAnnotation; public interface AlignCalcWorkerI { /** + * Returns the name of this calculation used to identify the service running + * this worker. + * + * @return calculator name + */ + public default String getCalcName() + { + return null; + } + + /** * Answers true if this worker updates the given annotation (regardless of its * current state) * @@ -50,13 +61,14 @@ public interface AlignCalcWorkerI * Removes any annotation(s) managed by this worker from the alignment */ void removeAnnotation(); - + /** * The main calculation happens here - * @throws Throwable + * + * @throws Throwable */ public void run() throws Throwable; - + /** * Answers true if the worker should be deleted entirely when its annotation * is deleted from the display, or false if it should continue to run. Some