1 package jalview.ws2.operations;
3 import jalview.ws.params.ParamDatastoreI;
4 import jalview.ws2.WebServiceI;
7 * Common base for all operation classes which provides boilerplate
8 * implementation for common {@link Operation} methods.
13 public abstract class AbstractOperation implements Operation
16 protected final WebServiceI service;
18 protected final String typeName;
20 protected boolean interactive = false;
22 protected boolean protOperation = true;
24 protected boolean nucOperation = true;
26 protected boolean alignmentAnalysis = false;
28 AbstractOperation(WebServiceI service, String typeName)
30 this.service = service;
31 this.typeName = typeName;
35 public WebServiceI getWebService()
41 public String getName()
43 return service.getName();
47 public String getDescription()
49 return service.getDescription();
53 public String getTypeName()
59 public String getHostName()
61 return service.getHostName();
65 public boolean hasParameters()
67 return service.hasParameters();
71 public ParamDatastoreI getParamStore()
73 return service.getParamStore();
77 public int getMinSequences()
83 public int getMaxSequences()
85 return Integer.MAX_VALUE;
89 public boolean canSubmitGaps()
95 public boolean isProteinOperation()
100 public void setProteinOperation(boolean value)
102 protOperation = value;
106 public boolean isNucleotideOperation()
111 public void setNucleotideOperation(boolean value)
113 nucOperation = value;
117 public boolean isInteractive()
122 public void setInteractive(boolean value)
128 public boolean isAlignmentAnalysis()
130 return alignmentAnalysis;
133 public void setAlignmentAnalysis(boolean value)
135 alignmentAnalysis = value;
139 public boolean getFilterNonStandardSymbols()
145 public boolean getNeedsAlignedSequences()