JAL-3878 Add getCalcName to AlignCalcWorkerI.
[jalview.git] / src / jalview / api / AlignCalcWorkerI.java
index b51b94e..19df53f 100644 (file)
@@ -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