1 package jalview.ws.sifts;
3 import java.util.Objects;
5 public class SiftsSettings
7 private static boolean mapWithSifts = false;
9 private static String siftDownloadDirectory;
11 private static int cacheThresholdInDays;
13 private static int failSafePIDThreshold;
15 public static boolean isMapWithSifts()
20 public static void setMapWithSifts(boolean mapWithSifts)
22 SiftsSettings.mapWithSifts = mapWithSifts;
25 public static String getSiftDownloadDirectory()
27 return siftDownloadDirectory;
30 public static void setSiftDownloadDirectory(String siftDownloadDirectory)
32 SiftsSettings.siftDownloadDirectory = siftDownloadDirectory;
35 public static int getCacheThresholdInDays()
37 return cacheThresholdInDays;
40 public static void setCacheThresholdInDays(String cacheThresholdInDays)
42 Objects.requireNonNull(cacheThresholdInDays);
43 SiftsSettings.cacheThresholdInDays = Integer
44 .valueOf(cacheThresholdInDays);
47 public static int getFailSafePIDThreshold()
49 return failSafePIDThreshold;
52 public static void setFailSafePIDThreshold(String failSafePIDThreshold)
54 Objects.requireNonNull(failSafePIDThreshold);
55 SiftsSettings.failSafePIDThreshold = Integer
56 .valueOf(failSafePIDThreshold);