| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
package jalview.ws.jws2.dm; |
| 22 |
|
|
| 23 |
|
import jalview.ws.api.ServiceWithParameters; |
| 24 |
|
import jalview.ws.jws2.JabaParamStore; |
| 25 |
|
import jalview.ws.jws2.ParameterUtils; |
| 26 |
|
import jalview.ws.params.ArgumentI; |
| 27 |
|
import jalview.ws.params.WsParamSetI; |
| 28 |
|
|
| 29 |
|
import java.util.List; |
| 30 |
|
|
| 31 |
|
import compbio.metadata.Option; |
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
@author |
| 37 |
|
|
| 38 |
|
|
| |
|
| 0% |
Uncovered Elements: 21 (21) |
Complexity: 6 |
Complexity Density: 0.46 |
|
| 39 |
|
public class AAConSettings extends jalview.ws.params.AutoCalcSetting |
| 40 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 41 |
0 |
public AAConSettings(boolean autoUpdate, ServiceWithParameters service2,... |
| 42 |
|
WsParamSetI preset, List<ArgumentI> jobArgset) |
| 43 |
|
{ |
| 44 |
0 |
super(service2, preset, jobArgset, autoUpdate); |
| 45 |
|
} |
| 46 |
|
|
| |
|
| 0% |
Uncovered Elements: 18 (18) |
Complexity: 5 |
Complexity Density: 0.42 |
|
| 47 |
0 |
@Override... |
| 48 |
|
public String getWsParamFile() |
| 49 |
|
{ |
| 50 |
0 |
List<Option> opts = null; |
| 51 |
0 |
if (jobArgset != null) |
| 52 |
|
{ |
| 53 |
0 |
opts = JabaParamStore.getJabafromJwsArgs(jobArgset); |
| 54 |
|
} |
| 55 |
|
else |
| 56 |
|
{ |
| 57 |
0 |
if (preset != null) |
| 58 |
|
{ |
| 59 |
0 |
opts = JabaParamStore.getJabafromJwsArgs(preset.getArguments()); |
| 60 |
|
} |
| 61 |
|
} |
| 62 |
0 |
if (opts == null || opts.size() == 0) |
| 63 |
|
{ |
| 64 |
0 |
return ""; |
| 65 |
|
} |
| 66 |
0 |
StringBuffer pset = new StringBuffer(); |
| 67 |
0 |
for (String ps : ParameterUtils.writeParameterSet(opts, " ")) |
| 68 |
|
{ |
| 69 |
0 |
pset.append(ps); |
| 70 |
0 |
pset.append("\n"); |
| 71 |
|
} |
| 72 |
0 |
return pset.toString(); |
| 73 |
|
} |
| 74 |
|
} |