1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.datamodel; |
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
@author |
27 |
|
@version |
28 |
|
|
|
|
| 23.1% |
Uncovered Elements: 20 (26) |
Complexity: 12 |
Complexity Density: 0.92 |
|
29 |
|
public class SequenceNode extends BinaryNode<SequenceI> |
30 |
|
{ |
31 |
|
private boolean placeholder = false; |
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
36 |
6 |
public SequenceNode()... |
37 |
|
{ |
38 |
6 |
super(); |
39 |
|
} |
40 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
41 |
70 |
public SequenceNode(SequenceI val, BinaryNode<SequenceI> parent,... |
42 |
|
String name, double dist, int bootstrap, boolean dummy) |
43 |
|
{ |
44 |
70 |
super(val, parent, name, dist, bootstrap, dummy); |
45 |
|
} |
46 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
47 |
0 |
public SequenceNode(SequenceI element, BinaryNode<SequenceI> parent,... |
48 |
|
String name, double dist, int bootstrap) |
49 |
|
{ |
50 |
0 |
super(element, parent, name, dist, bootstrap); |
51 |
|
} |
52 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
0 |
public SequenceNode(SequenceI element, BinaryNode<SequenceI> parent,... |
54 |
|
String name, double dist) |
55 |
|
{ |
56 |
0 |
super(element, parent, name, dist); |
57 |
|
} |
58 |
|
|
59 |
|
|
60 |
|
@param |
61 |
|
|
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0 |
public boolean isPlaceholder()... |
64 |
|
{ |
65 |
0 |
return placeholder; |
66 |
|
} |
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
@param |
72 |
|
|
73 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
38 |
public void setPlaceholder(boolean Placeholder)... |
75 |
|
{ |
76 |
38 |
this.placeholder = Placeholder; |
77 |
|
} |
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
@return |
84 |
|
|
|
|
| 0% |
Uncovered Elements: 13 (13) |
Complexity: 6 |
Complexity Density: 0.86 |
|
85 |
0 |
public boolean isSequenceLabel()... |
86 |
|
{ |
87 |
0 |
if (name != null && name.length() > 0) |
88 |
|
{ |
89 |
0 |
for (int c = 0, s = name.length(); c < s; c++) |
90 |
|
{ |
91 |
0 |
char q = name.charAt(c); |
92 |
0 |
if ('0' <= q && q <= '9') |
93 |
|
{ |
94 |
0 |
continue; |
95 |
|
} |
96 |
0 |
return true; |
97 |
|
} |
98 |
|
} |
99 |
0 |
return false; |
100 |
|
} |
101 |
|
} |