1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.ws.sifts; |
22 |
|
|
23 |
|
import java.util.Objects; |
24 |
|
|
|
|
| 0% |
Uncovered Elements: 18 (18) |
Complexity: 8 |
Complexity Density: 0.8 |
|
25 |
|
public class SiftsSettings |
26 |
|
{ |
27 |
|
private static boolean mapWithSifts = false; |
28 |
|
|
29 |
|
private static String siftDownloadDirectory; |
30 |
|
|
31 |
|
private static int cacheThresholdInDays; |
32 |
|
|
33 |
|
private static int failSafePIDThreshold; |
34 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
35 |
0 |
public static boolean isMapWithSifts()... |
36 |
|
{ |
37 |
0 |
return mapWithSifts; |
38 |
|
} |
39 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
40 |
0 |
public static void setMapWithSifts(boolean mapWithSifts)... |
41 |
|
{ |
42 |
0 |
SiftsSettings.mapWithSifts = mapWithSifts; |
43 |
|
} |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
45 |
0 |
public static String getSiftDownloadDirectory()... |
46 |
|
{ |
47 |
0 |
return siftDownloadDirectory; |
48 |
|
} |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
0 |
public static void setSiftDownloadDirectory(String siftDownloadDirectory)... |
51 |
|
{ |
52 |
0 |
SiftsSettings.siftDownloadDirectory = siftDownloadDirectory; |
53 |
|
} |
54 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
0 |
public static int getCacheThresholdInDays()... |
56 |
|
{ |
57 |
0 |
return cacheThresholdInDays; |
58 |
|
} |
59 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
60 |
0 |
public static void setCacheThresholdInDays(String cacheThresholdInDays)... |
61 |
|
{ |
62 |
0 |
Objects.requireNonNull(cacheThresholdInDays); |
63 |
0 |
SiftsSettings.cacheThresholdInDays = Integer |
64 |
|
.valueOf(cacheThresholdInDays); |
65 |
|
} |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
0 |
public static int getFailSafePIDThreshold()... |
68 |
|
{ |
69 |
0 |
return failSafePIDThreshold; |
70 |
|
} |
71 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
72 |
0 |
public static void setFailSafePIDThreshold(String failSafePIDThreshold)... |
73 |
|
{ |
74 |
0 |
Objects.requireNonNull(failSafePIDThreshold); |
75 |
0 |
SiftsSettings.failSafePIDThreshold = Integer |
76 |
|
.valueOf(failSafePIDThreshold); |
77 |
|
} |
78 |
|
} |