| 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 |
|
|
| 25 |
|
import jalview.bin.ApplicationSingletonProvider; |
| 26 |
|
import jalview.bin.ApplicationSingletonProvider.ApplicationSingletonI; |
| 27 |
|
|
| |
|
| 0% |
Uncovered Elements: 21 (21) |
Complexity: 10 |
Complexity Density: 0.91 |
|
| 28 |
|
public class SiftsSettings implements ApplicationSingletonI |
| 29 |
|
{ |
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
@return |
| 34 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 35 |
0 |
private static SiftsSettings getInstance()... |
| 36 |
|
{ |
| 37 |
0 |
return ApplicationSingletonProvider.getInstance(SiftsSettings.class); |
| 38 |
|
} |
| 39 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 40 |
0 |
private SiftsSettings()... |
| 41 |
|
{ |
| 42 |
|
|
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
private boolean mapWithSifts = false; |
| 46 |
|
|
| 47 |
|
private String siftDownloadDirectory; |
| 48 |
|
|
| 49 |
|
private int cacheThresholdInDays; |
| 50 |
|
|
| 51 |
|
private int failSafePIDThreshold; |
| 52 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 53 |
0 |
public static boolean isMapWithSifts()... |
| 54 |
|
{ |
| 55 |
0 |
return getInstance().mapWithSifts; |
| 56 |
|
} |
| 57 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 58 |
0 |
public static void setMapWithSifts(boolean mapWithSifts)... |
| 59 |
|
{ |
| 60 |
0 |
getInstance().mapWithSifts = mapWithSifts; |
| 61 |
|
} |
| 62 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 63 |
0 |
public static String getSiftDownloadDirectory()... |
| 64 |
|
{ |
| 65 |
0 |
return getInstance().siftDownloadDirectory; |
| 66 |
|
} |
| 67 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 68 |
0 |
public static void setSiftDownloadDirectory(String siftDownloadDirectory)... |
| 69 |
|
{ |
| 70 |
0 |
getInstance().siftDownloadDirectory = siftDownloadDirectory; |
| 71 |
|
} |
| 72 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 73 |
0 |
public static int getCacheThresholdInDays()... |
| 74 |
|
{ |
| 75 |
0 |
return getInstance().cacheThresholdInDays; |
| 76 |
|
} |
| 77 |
|
|
| |
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 78 |
0 |
public static void setCacheThresholdInDays(String cacheThresholdInDays)... |
| 79 |
|
{ |
| 80 |
0 |
Objects.requireNonNull(cacheThresholdInDays); |
| 81 |
0 |
getInstance().cacheThresholdInDays = Integer |
| 82 |
|
.valueOf(cacheThresholdInDays); |
| 83 |
|
} |
| 84 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 85 |
0 |
public static int getFailSafePIDThreshold()... |
| 86 |
|
{ |
| 87 |
0 |
return getInstance().failSafePIDThreshold; |
| 88 |
|
} |
| 89 |
|
|
| |
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 90 |
0 |
public static void setFailSafePIDThreshold(String failSafePIDThreshold)... |
| 91 |
|
{ |
| 92 |
0 |
Objects.requireNonNull(failSafePIDThreshold); |
| 93 |
0 |
getInstance().failSafePIDThreshold = Integer |
| 94 |
|
.valueOf(failSafePIDThreshold); |
| 95 |
|
} |
| 96 |
|
} |