import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.SequenceI;
import jalview.ws.gui.AnnotationWsJob;
-import jalview.ws.jws2.AbstractJabaCalcWorker;
+import jalview.ws.jws2.SeqAnnotationServiceCalcWorker;
import jalview.ws.params.ArgumentI;
import jalview.ws.params.WsParamSetI;
* @return
*/
List<AlignmentAnnotation> getAlignmentAnnotation(AnnotationWsJob running,
- AbstractJabaCalcWorker abstractJabaCalcWorker) throws Throwable;
+ SeqAnnotationServiceCalcWorker abstractJabaCalcWorker) throws Throwable;
}
.getRegisteredWorkersOfClass(aaui.getClient());
if (aaconClient != null && aaconClient.size() > 0)
{
- AbstractJabaCalcWorker worker = (AbstractJabaCalcWorker) aaconClient
+ SeqAnnotationServiceCalcWorker worker = (SeqAnnotationServiceCalcWorker) aaconClient
.get(0);
if (!worker.service.getHostURL().equals(service.getHostURL()))
{
}
List<AlignCalcWorkerI> aaconClient = alignFrame.getViewport()
.getCalcManager().getRegisteredWorkersOfClass(
- AbstractJabaCalcWorker.class);
+ SeqAnnotationServiceCalcWorker.class);
boolean serviceEnabled = false;
if (aaconClient != null)
{
for (AlignCalcWorkerI _worker : aaconClient)
{
- AbstractJabaCalcWorker worker = (AbstractJabaCalcWorker) _worker;
+ SeqAnnotationServiceCalcWorker worker = (SeqAnnotationServiceCalcWorker) _worker;
// this could be cleaner ?
if (worker.hasService()
&& aaui.getClient()
import java.util.List;
import java.util.Map;
-public class AbstractJabaCalcWorker extends AlignCalcWorker
+public class SeqAnnotationServiceCalcWorker extends AlignCalcWorker
implements WSAnnotationCalcManagerI
{
return gapMap;
}
- public AbstractJabaCalcWorker(AlignViewportI alignViewport,
+ public SeqAnnotationServiceCalcWorker(AlignViewportI alignViewport,
AlignmentViewPanel alignPanel)
{
super(alignViewport, alignPanel);
}
- public AbstractJabaCalcWorker(Jws2Instance service, AlignFrame alignFrame,
+ public SeqAnnotationServiceCalcWorker(Jws2Instance service, AlignFrame alignFrame,
WsParamSetI preset, List<ArgumentI> paramset)
{
this(alignFrame.getCurrentView(), alignFrame.alignPanel);
List<AlignCalcWorkerI> clnts = alignFrame.getViewport()
.getCalcManager()
- .getRegisteredWorkersOfClass(AbstractJabaCalcWorker.class);
+ .getRegisteredWorkersOfClass(SeqAnnotationServiceCalcWorker.class);
- AbstractJabaCalcWorker worker = null;
+ SeqAnnotationServiceCalcWorker worker = null;
if (clnts != null)
{
for (AlignCalcWorkerI _worker : clnts)
{
- worker = (AbstractJabaCalcWorker) _worker;
+ worker = (SeqAnnotationServiceCalcWorker) _worker;
if (worker.hasService()
&& worker.getService().getClass().equals(clientClass))
{
}
try
{
- worker = new AbstractJabaCalcWorker(sh, alignFrame, this.preset,
+ worker = new SeqAnnotationServiceCalcWorker(sh, alignFrame, this.preset,
paramset);
} catch (Exception x)
{
}
alignFrame.getViewport().getCalcManager().startWorker(
- new AbstractJabaCalcWorker(sh, alignFrame, preset, paramset));
+ new SeqAnnotationServiceCalcWorker(sh, alignFrame, preset, paramset));
}
}
import jalview.ws.api.JobId;
import jalview.ws.api.SequenceAnnotationServiceI;
import jalview.ws.gui.AnnotationWsJob;
-import jalview.ws.jws2.AbstractJabaCalcWorker;
+import jalview.ws.jws2.SeqAnnotationServiceCalcWorker;
import jalview.ws.jws2.JabaParamStore;
import jalview.ws.jws2.JabaPreset;
import jalview.ws.params.ArgumentI;
@Override
public List<AlignmentAnnotation> getAlignmentAnnotation(
AnnotationWsJob running,
- AbstractJabaCalcWorker abstractJabaCalcWorker) throws Throwable
+ SeqAnnotationServiceCalcWorker abstractJabaCalcWorker) throws Throwable
{
if (scoremanager == null)
{
package jalview.ws.jws2.jabaws2;
import jalview.gui.AlignFrame;
-import jalview.ws.jws2.AbstractJabaCalcWorker;
+import jalview.ws.jws2.SeqAnnotationServiceCalcWorker;
import jalview.ws.params.ArgumentI;
import jalview.ws.params.WsParamSetI;
import java.util.List;
public abstract class JabawsMsaInterfaceAlignCalcWorker
- extends AbstractJabaCalcWorker
+ extends SeqAnnotationServiceCalcWorker
{
public JabawsMsaInterfaceAlignCalcWorker(Jws2Instance service,
import jalview.io.FileFormat;
import jalview.io.FormatAdapter;
import jalview.io.StockholmFileTest;
-import jalview.ws.jws2.AbstractJabaCalcWorker;
+import jalview.ws.jws2.SeqAnnotationServiceCalcWorker;
import jalview.ws.jws2.Jws2Discoverer;
import jalview.ws.jws2.jabaws2.Jws2Instance;
public static List<Jws2Instance> iupreds;
- jalview.ws.jws2.AbstractJabaCalcWorker disorderClient;
+ jalview.ws.jws2.SeqAnnotationServiceCalcWorker disorderClient;
public static jalview.gui.AlignFrame af = null;
@Test(groups = { "External", "Network" })
public void testDisorderAnnotExport()
{
- disorderClient = new AbstractJabaCalcWorker(iupreds.get(0), af, null,
+ disorderClient = new SeqAnnotationServiceCalcWorker(iupreds.get(0), af, null,
null);
af.getViewport().getCalcManager().startWorker(disorderClient);
do
import jalview.io.FormatAdapter;
import jalview.io.StockholmFileTest;
import jalview.project.Jalview2XML;
-import jalview.ws.jws2.AbstractJabaCalcWorker;
+import jalview.ws.jws2.SeqAnnotationServiceCalcWorker;
import jalview.ws.jws2.JabaParamStore;
import jalview.ws.jws2.Jws2Discoverer;
import jalview.ws.jws2.SequenceAnnotationWSClient;
public static Jws2Instance rnaalifoldws;
- AbstractJabaCalcWorker alifoldClient;
+ SeqAnnotationServiceCalcWorker alifoldClient;
public static jalview.gui.AlignFrame af = null;
public void testRNAAliFoldValidStructure()
{
- alifoldClient = new AbstractJabaCalcWorker(rnaalifoldws, af, null,
+ alifoldClient = new SeqAnnotationServiceCalcWorker(rnaalifoldws, af, null,
null);
af.getViewport().getCalcManager().startWorker(alifoldClient);
public void testRNAStructExport()
{
- alifoldClient = new AbstractJabaCalcWorker(rnaalifoldws, af, null,
+ alifoldClient = new SeqAnnotationServiceCalcWorker(rnaalifoldws, af, null,
null);
af.getViewport().getCalcManager().startWorker(alifoldClient);
opts.add(rg);
}
}
- alifoldClient = new AbstractJabaCalcWorker(rnaalifoldws, af, null,
+ alifoldClient = new SeqAnnotationServiceCalcWorker(rnaalifoldws, af, null,
JabaParamStore.getJwsArgsfromJaba(opts));
af.getViewport().getCalcManager().startWorker(alifoldClient);