*/
package jalview.ws;
+import jalview.ws.params.ArgumentI;
+import jalview.ws.params.WsParamSetI;
+
+import java.util.Hashtable;
+import java.util.List;
+import java.util.Map;
+
/**
* Generic properties for an individual job within a Web Service Client thread.
* Derived from jalview web services version 1 statuses, and revised for Jws2.
*/
protected boolean subjobComplete = false;
+ protected WsParamSetI preset = null;
+
+ protected List<ArgumentI> arguments = null;
+
+ protected Hashtable<String, Map> SeqNames = new Hashtable();
+
public AWsJob()
{
}
String state = "";
return state;
}
+
+ public void setPreset(WsParamSetI jobpreset)
+ {
+ preset = jobpreset;
+ }
+
+ public void setArguments(List<ArgumentI> paramset)
+ {
+ arguments = paramset;
+
+ }
}
import jalview.ws.JobStateSummary;
import jalview.ws.WSClientI;
-import java.util.Hashtable;
import java.util.Vector;
import vamsas.objects.simple.MsaResult;
}
- Hashtable SeqNames = new Hashtable();
-
Vector emptySeqs = new Vector();
/**
import jalview.ws.WSClientI;
import java.util.HashMap;
-import java.util.Hashtable;
import java.util.Map;
import java.util.Vector;
}
- Hashtable SeqNames = new Hashtable();
-
Vector emptySeqs = new Vector();
/**
import jalview.ws.params.WsParamSetI;
import java.util.ArrayList;
-import java.util.Hashtable;
import java.util.List;
-import java.util.Map;
import java.util.Vector;
import javax.swing.JInternalFrame;
{
long lastChunk = 0;
- WsParamSetI preset = null;
-
- List<ArgumentI> arguments = null;
-
/**
* input
*/
}
- Hashtable<String, Map> SeqNames = new Hashtable();
-
Vector<String[]> emptySeqs = new Vector();
/**
if (conmsa != null)
{
int nvalid = 0, njobs = conmsa.length;
- jobs = new MsaWSJob[njobs];
+ jobs = new AWsJob[njobs];
for (int j = 0; j < njobs; j++)
{
if (j != 0)
{
jobs[j] = new MsaWSJob(0, conmsa[j]);
}
- if (((MsaWSJob) jobs[j]).hasValidInput())
+ if (jobs[j].hasValidInput())
{
nvalid++;
}
- ((MsaWSJob) jobs[j]).preset = preset;
- ((MsaWSJob) jobs[j]).arguments = paramset;
+ jobs[j].setPreset(preset);
+ jobs[j].setArguments(paramset);
((MsaWSJob) jobs[j]).alignmentProgram = wsname;
if (njobs > 0)
{