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; |
22 |
|
|
23 |
|
import jalview.util.MessageManager; |
24 |
|
import jalview.ws.jws2.jabaws2.Jws2Instance; |
25 |
|
import jalview.ws.params.ArgumentI; |
26 |
|
import jalview.ws.params.WsParamSetI; |
27 |
|
|
28 |
|
import java.util.List; |
29 |
|
|
30 |
|
import compbio.metadata.Preset; |
31 |
|
|
|
|
| 0% |
Uncovered Elements: 22 (22) |
Complexity: 10 |
Complexity Density: 0.77 |
|
32 |
|
public class JabaPreset implements WsParamSetI |
33 |
|
{ |
34 |
|
Preset p = null; |
35 |
|
|
36 |
|
Jws2Instance service; |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
38 |
0 |
public JabaPreset(Jws2Instance svc, Preset preset)... |
39 |
|
{ |
40 |
0 |
service = svc; |
41 |
0 |
p = preset; |
42 |
|
} |
43 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0 |
@Override... |
45 |
|
public String getName() |
46 |
|
{ |
47 |
0 |
return p.getName(); |
48 |
|
} |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
0 |
@Override... |
51 |
|
public String getDescription() |
52 |
|
{ |
53 |
0 |
return p.getDescription(); |
54 |
|
} |
55 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
56 |
0 |
@Override... |
57 |
|
public String[] getApplicableUrls() |
58 |
|
{ |
59 |
0 |
return new String[] { service.getUri() }; |
60 |
|
} |
61 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
62 |
0 |
@Override... |
63 |
|
public String getSourceFile() |
64 |
|
{ |
65 |
0 |
return null; |
66 |
|
} |
67 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
0 |
@Override... |
69 |
|
public boolean isModifiable() |
70 |
|
{ |
71 |
0 |
return false; |
72 |
|
} |
73 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
0 |
@Override... |
75 |
|
public void setSourceFile(String newfile) |
76 |
|
{ |
77 |
0 |
throw new Error(MessageManager |
78 |
|
.formatMessage("error.cannot_set_source_file_for", new String[] |
79 |
|
{ getClass().toString() })); |
80 |
|
} |
81 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
82 |
0 |
@Override... |
83 |
|
public List<ArgumentI> getArguments() |
84 |
|
{ |
85 |
0 |
try |
86 |
|
{ |
87 |
0 |
return JabaParamStore.getJwsArgsfromJaba( |
88 |
|
p.getArguments(service.getRunnerConfig())); |
89 |
|
} catch (Exception e) |
90 |
|
{ |
91 |
0 |
e.printStackTrace(); |
92 |
0 |
throw new Error(MessageManager |
93 |
|
.getString("error.mismatch_service_instance_preset")); |
94 |
|
} |
95 |
|
} |
96 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
97 |
0 |
@Override... |
98 |
|
public void setArguments(List<ArgumentI> args) |
99 |
|
{ |
100 |
0 |
throw new Error(MessageManager |
101 |
|
.getString("error.cannot_set_params_for_ws_preset")); |
102 |
|
} |
103 |
|
} |