JAL-3070 additional interfaces for web services (not yet used!)
authorJim Procter <jprocter@issues.jalview.org>
Mon, 6 Aug 2018 09:18:45 +0000 (10:18 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 6 Aug 2018 09:18:45 +0000 (10:18 +0100)
src/jalview/ws/api/DistanceMatrixResultI.java [new file with mode: 0644]
src/jalview/ws/api/MsaWithGuideTreeI.java [new file with mode: 0644]
src/jalview/ws/api/TreeResultI.java [new file with mode: 0644]

diff --git a/src/jalview/ws/api/DistanceMatrixResultI.java b/src/jalview/ws/api/DistanceMatrixResultI.java
new file mode 100644 (file)
index 0000000..a40d256
--- /dev/null
@@ -0,0 +1,16 @@
+package jalview.ws.api;
+
+import jalview.math.MatrixI;
+import jalview.ws.params.InvalidArgumentException;
+
+import java.io.IOError;
+import java.rmi.ServerError;
+
+public interface DistanceMatrixResultI
+{
+
+  public MatrixI getDistanceMatrixFor(JobId jobId)
+          throws InvalidArgumentException, ServerError, IOError;
+
+
+}
\ No newline at end of file
diff --git a/src/jalview/ws/api/MsaWithGuideTreeI.java b/src/jalview/ws/api/MsaWithGuideTreeI.java
new file mode 100644 (file)
index 0000000..6c2ff53
--- /dev/null
@@ -0,0 +1,24 @@
+package jalview.ws.api;
+
+import jalview.analysis.NJTree;
+import jalview.datamodel.SequenceI;
+import jalview.ws.params.InvalidArgumentException;
+import jalview.ws.params.WsParamSetI;
+
+import java.io.IOError;
+import java.rmi.ServerError;
+import java.util.List;
+
+public interface MsaWithGuideTreeI
+{
+  /**
+   * Given a set of sequences
+   * 
+   * @param toalign
+   * @param parameters
+   * @return JobId or exceptions are thrown.
+   */
+  public JobId align(List<SequenceI> toalign, NJTree guideTree,
+          WsParamSetI parameters)
+          throws InvalidArgumentException, ServerError, IOError;
+}
\ No newline at end of file
diff --git a/src/jalview/ws/api/TreeResultI.java b/src/jalview/ws/api/TreeResultI.java
new file mode 100644 (file)
index 0000000..1a0c3bd
--- /dev/null
@@ -0,0 +1,14 @@
+package jalview.ws.api;
+
+import jalview.analysis.NJTree;
+import jalview.ws.params.InvalidArgumentException;
+
+import java.io.IOError;
+import java.rmi.ServerError;
+
+public interface TreeResultI
+{
+
+  public NJTree getTreeFor(JobId jobId)
+          throws InvalidArgumentException, ServerError, IOError;
+}
\ No newline at end of file