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.jabaws2; |
22 |
|
|
23 |
|
import jalview.ws.jws2.AAConClient; |
24 |
|
import jalview.ws.jws2.RNAalifoldClient; |
25 |
|
import jalview.ws.uimodel.AlignAnalysisUIText; |
26 |
|
|
27 |
|
import java.util.HashMap; |
28 |
|
import java.util.HashSet; |
29 |
|
|
30 |
|
import compbio.data.msa.JABAService; |
31 |
|
|
|
|
| 0% |
Uncovered Elements: 20 (20) |
Complexity: 7 |
Complexity Density: 0.58 |
|
32 |
|
public class Jws2InstanceFactory |
33 |
|
{ |
34 |
|
private static HashMap<String, AlignAnalysisUIText> aaConGUI; |
35 |
|
|
36 |
|
private static HashSet<String> ignoreGUI; |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 3 |
Complexity Density: 3 |
|
38 |
0 |
private static String category_rewrite(String cat_name)... |
39 |
|
{ |
40 |
0 |
return (cat_name != null && cat_name.equals("Prediction")) |
41 |
|
? "Secondary Structure Prediction" |
42 |
|
: cat_name; |
43 |
|
} |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
45 |
0 |
private static void init()... |
46 |
|
{ |
47 |
0 |
if (aaConGUI == null) |
48 |
|
{ |
49 |
0 |
aaConGUI = new HashMap<String, AlignAnalysisUIText>(); |
50 |
0 |
aaConGUI.put(compbio.ws.client.Services.AAConWS.toString(), |
51 |
|
AAConClient.getAlignAnalysisUITest()); |
52 |
0 |
aaConGUI.put(compbio.ws.client.Services.RNAalifoldWS.toString(), |
53 |
|
RNAalifoldClient.getAlignAnalysisUITest()); |
54 |
|
|
55 |
0 |
ignoreGUI = new HashSet<String>(); |
56 |
|
} |
57 |
|
} |
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
@param |
64 |
|
@return |
65 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
66 |
0 |
public static boolean ignoreService(String serviceType)... |
67 |
|
{ |
68 |
0 |
init(); |
69 |
0 |
return (ignoreGUI.contains(serviceType.toString())); |
70 |
|
} |
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
@param |
77 |
|
@param |
78 |
|
@param |
79 |
|
@param |
80 |
|
@param |
81 |
|
@return |
82 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
83 |
0 |
public static Jws2Instance newJws2Instance(String jwsservers,... |
84 |
|
String serviceType, String name, String description, |
85 |
|
JABAService service) |
86 |
|
{ |
87 |
0 |
init(); |
88 |
0 |
Jws2Instance svc = new Jws2Instance(jwsservers, serviceType, |
89 |
|
category_rewrite(name), description, service); |
90 |
0 |
svc.aaui = aaConGUI.get(serviceType.toString()); |
91 |
0 |
return svc; |
92 |
|
} |
93 |
|
|
94 |
|
} |