JAL-3899 Update usages of uniquify and deuniquify.
[jalview.git] / src / jalview / ws / AWsJob.java
index bb203fc..ed88ea9 100644 (file)
@@ -20,6 +20,7 @@
  */
 package jalview.ws;
 
+import jalview.analysis.SeqsetUtils.SequenceInfo;
 import jalview.ws.params.ArgumentI;
 import jalview.ws.params.WsParamSetI;
 
@@ -156,7 +157,7 @@ public abstract class AWsJob
 
   protected List<ArgumentI> arguments = null;
 
-  protected Hashtable<String, Map> SeqNames = new Hashtable();
+  protected Hashtable<String, SequenceInfo> SeqNames = new Hashtable();
 
   public AWsJob()
   {
@@ -251,4 +252,36 @@ public abstract class AWsJob
     arguments = paramset;
 
   }
+
+  public boolean isPresetJob()
+  {
+    return preset!=null && arguments==null; 
+  }
+
+  public List<ArgumentI> getArguments()
+  {
+    return arguments;
+  }
+
+  public WsParamSetI getPreset()
+  {
+    return preset;
+  }
+
+  long nextChunk = 0;
+
+  /**
+   * update the record of the last position in the log file read for this job
+   * 
+   * @param nextChunk
+   */
+  public void setnextChunk(long nextChunk)
+  {
+    this.nextChunk = nextChunk;
+  }
+
+  public long getNextChunk()
+  {
+    return nextChunk;
+  }
 }