git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3878 Add getCalcName to AlignCalcWorkerI.
[jalview.git]
/
src
/
jalview
/
api
/
AlignCalcWorkerI.java
diff --git
a/src/jalview/api/AlignCalcWorkerI.java
b/src/jalview/api/AlignCalcWorkerI.java
index
b51b94e
..
19df53f
100644
(file)
--- a/
src/jalview/api/AlignCalcWorkerI.java
+++ b/
src/jalview/api/AlignCalcWorkerI.java
@@
-31,6
+31,17
@@
import jalview.datamodel.AlignmentAnnotation;
public interface AlignCalcWorkerI
{
/**
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)
*
* 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();
* Removes any annotation(s) managed by this worker from the alignment
*/
void removeAnnotation();
-
+
/**
* The main calculation happens here
/**
* The main calculation happens here
- * @throws Throwable
+ *
+ * @throws Throwable
*/
public void run() 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
/**
* 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