aboutsummaryrefslogtreecommitdiff
path: root/src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java
diff options
context:
space:
mode:
authorRncLsn <rnc.lsn@gmail.com>2015-07-03 19:09:31 +0100
committerRncLsn <rnc.lsn@gmail.com>2015-07-03 19:09:31 +0100
commit39b60d4225f5efa4e0287a2c6ce69d90391c69db (patch)
tree18c5b05726f39baa4d3ca8b228e24ad1f0182f2a /src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java
parent133dab6e21f263df2baca913d3d0b7a4fd152d08 (diff)
downloadACQuA-39b60d4225f5efa4e0287a2c6ce69d90391c69db.tar.gz
ACQuA-39b60d4225f5efa4e0287a2c6ce69d90391c69db.zip
Many little changes.
Diffstat (limited to 'src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java')
-rw-r--r--src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java b/src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java
index 4991d0d..7b68400 100644
--- a/src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java
+++ b/src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java
@@ -15,6 +15,7 @@ public class PagodaProperties {
15 public static final boolean DEFAULT_DEBUG = false; 15 public static final boolean DEFAULT_DEBUG = false;
16 private static final boolean DEFAULT_USE_ALWAYS_SIMPLE_UPPER_BOUND; 16 private static final boolean DEFAULT_USE_ALWAYS_SIMPLE_UPPER_BOUND;
17 private static final boolean DEFAULT_USE_SKOLEM_UPPER_BOUND; 17 private static final boolean DEFAULT_USE_SKOLEM_UPPER_BOUND;
18 private static final boolean DEFAULT_TO_CALL_HERMIT;
18 private static final Path DEFAULT_STATISTICS_DIR; 19 private static final Path DEFAULT_STATISTICS_DIR;
19 20
20 public static boolean shellModeDefault = false; 21 public static boolean shellModeDefault = false;
@@ -23,6 +24,7 @@ public class PagodaProperties {
23 static { 24 static {
24 boolean defaultUseAlwaysSimpleUpperBound = false; 25 boolean defaultUseAlwaysSimpleUpperBound = false;
25 boolean defaultUseSkolemUpperBound = true; 26 boolean defaultUseSkolemUpperBound = true;
27 boolean toCallHermit = true;
26 Path defaultStatisticsDir = null; 28 Path defaultStatisticsDir = null;
27 29
28 try(InputStream in = PagodaProperties.class.getClassLoader().getResourceAsStream(CONFIG_FILE)) { 30 try(InputStream in = PagodaProperties.class.getClassLoader().getResourceAsStream(CONFIG_FILE)) {
@@ -52,12 +54,20 @@ public class PagodaProperties {
52 else 54 else
53 logger.debug("By default the Skolem upper bound is disabled"); 55 logger.debug("By default the Skolem upper bound is disabled");
54 } 56 }
57 if(config.containsKey("toCallHermit")) {
58 toCallHermit = Boolean.parseBoolean(config.getProperty("toCallHermit"));
59 if(toCallHermit)
60 logger.debug("By default Hermit is enabled");
61 else
62 logger.debug("By default Hermit is disabled");
63 }
55 64
56 } catch(IOException e) { 65 } catch(IOException e) {
57 e.printStackTrace(); 66 e.printStackTrace();
58 } 67 }
59 DEFAULT_USE_ALWAYS_SIMPLE_UPPER_BOUND = defaultUseAlwaysSimpleUpperBound; 68 DEFAULT_USE_ALWAYS_SIMPLE_UPPER_BOUND = defaultUseAlwaysSimpleUpperBound;
60 DEFAULT_USE_SKOLEM_UPPER_BOUND = defaultUseSkolemUpperBound; 69 DEFAULT_USE_SKOLEM_UPPER_BOUND = defaultUseSkolemUpperBound;
70 DEFAULT_TO_CALL_HERMIT = toCallHermit;
61 DEFAULT_STATISTICS_DIR = defaultStatisticsDir; 71 DEFAULT_STATISTICS_DIR = defaultStatisticsDir;
62 } 72 }
63 73
@@ -66,7 +76,7 @@ public class PagodaProperties {
66 String queryPath = null; 76 String queryPath = null;
67 String answerPath = null; 77 String answerPath = null;
68 boolean toClassify = true; 78 boolean toClassify = true;
69 boolean toCallHermiT = true; 79 boolean toCallHermiT = DEFAULT_TO_CALL_HERMIT;
70 boolean shellMode = shellModeDefault; 80 boolean shellMode = shellModeDefault;
71 private boolean useAlwaysSimpleUpperBound = DEFAULT_USE_ALWAYS_SIMPLE_UPPER_BOUND; 81 private boolean useAlwaysSimpleUpperBound = DEFAULT_USE_ALWAYS_SIMPLE_UPPER_BOUND;
72 private boolean useSkolemUpperBound = DEFAULT_USE_SKOLEM_UPPER_BOUND; 82 private boolean useSkolemUpperBound = DEFAULT_USE_SKOLEM_UPPER_BOUND;