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 String getName()
37 return service.getName();
41 public String getDescription()
43 return service.getDescription();
47 public String getTypeName()
53 public String getHostName()
55 return service.getHostName();
59 public boolean hasParameters()
61 return service.hasParameters();
65 public ParamDatastoreI getParamStore()
67 return service.getParamStore();
71 public int getMinSequences()
77 public int getMaxSequences()
79 return Integer.MAX_VALUE;
83 public boolean canSubmitGaps()
89 public boolean isProteinOperation()
94 public void setProteinOperation(boolean value)
96 protOperation = value;
100 public boolean isNucleotideOperation()
105 public void setNucleotideOperation(boolean value)
107 nucOperation = value;
111 public boolean isInteractive()
116 public void setInteractive(boolean value)
122 public boolean isAlignmentAnalysis()
124 return alignmentAnalysis;
127 public void setAlignmentAnalysis(boolean value)
129 alignmentAnalysis = value;
133 public boolean getFilterNonStandardSymbols()
139 public boolean getNeedsAlignedSequences()