diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-08-24 15:54:05 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-08-24 15:54:05 +0100 |
| commit | 90cb6032058ad3fc16b895922823b5a700121b1b (patch) | |
| tree | 0aeba79d9df6ea257dd67f5e049d2065f97787ad /src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java | |
| parent | ae9a6bad58019ef18657568e58f49459fbadc49c (diff) | |
| download | ACQuA-90cb6032058ad3fc16b895922823b5a700121b1b.tar.gz ACQuA-90cb6032058ad3fc16b895922823b5a700121b1b.zip | |
Incremental Skolemised store (seems completed).
Diffstat (limited to 'src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java')
| -rw-r--r-- | src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java b/src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java index 18469ff..0f9ad4e 100644 --- a/src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java +++ b/src/uk/ac/ox/cs/pagoda/util/PagodaProperties.java | |||
| @@ -20,6 +20,7 @@ public class PagodaProperties { | |||
| 20 | private static final int DEFAULT_SKOLEM_DEPTH; | 20 | private static final int DEFAULT_SKOLEM_DEPTH; |
| 21 | private static final boolean DEFAULT_TO_CALL_HERMIT; | 21 | private static final boolean DEFAULT_TO_CALL_HERMIT; |
| 22 | private static final Path DEFAULT_STATISTICS_DIR; | 22 | private static final Path DEFAULT_STATISTICS_DIR; |
| 23 | private static final long DEFAULT_MAX_TRIPLES_IN_SKOLEM_STORE; | ||
| 23 | 24 | ||
| 24 | public static boolean shellModeDefault = false; | 25 | public static boolean shellModeDefault = false; |
| 25 | private static boolean debug = DEFAULT_DEBUG; | 26 | private static boolean debug = DEFAULT_DEBUG; |
| @@ -30,6 +31,7 @@ public class PagodaProperties { | |||
| 30 | int defaultSkolemDepth = 1; | 31 | int defaultSkolemDepth = 1; |
| 31 | boolean toCallHermit = true; | 32 | boolean toCallHermit = true; |
| 32 | Path defaultStatisticsDir = null; | 33 | Path defaultStatisticsDir = null; |
| 34 | long defaultMaxTriplesInSkolemStore = 1000000; | ||
| 33 | 35 | ||
| 34 | try (InputStream in = PagodaProperties.class.getClassLoader().getResourceAsStream(CONFIG_FILE)) { | 36 | try (InputStream in = PagodaProperties.class.getClassLoader().getResourceAsStream(CONFIG_FILE)) { |
| 35 | Properties config = new Properties(); | 37 | Properties config = new Properties(); |
| @@ -77,6 +79,10 @@ public class PagodaProperties { | |||
| 77 | defaultSkolemDepth = Integer.parseInt(config.getProperty("skolemDepth")); | 79 | defaultSkolemDepth = Integer.parseInt(config.getProperty("skolemDepth")); |
| 78 | logger.debug("By default the max skolemisation depth is " + defaultSkolemDepth); | 80 | logger.debug("By default the max skolemisation depth is " + defaultSkolemDepth); |
| 79 | } | 81 | } |
| 82 | if (config.containsKey("maxTriplesInSkolemStore")) { | ||
| 83 | defaultMaxTriplesInSkolemStore = Long.parseLong(config.getProperty("maxTriplesInSkolemStore")); | ||
| 84 | logger.debug("By default the maximum number of triples in the Skolem store is " + defaultMaxTriplesInSkolemStore); | ||
| 85 | } | ||
| 80 | 86 | ||
| 81 | } catch (IOException e) { | 87 | } catch (IOException e) { |
| 82 | e.printStackTrace(); | 88 | e.printStackTrace(); |
| @@ -86,6 +92,7 @@ public class PagodaProperties { | |||
| 86 | DEFAULT_TO_CALL_HERMIT = toCallHermit; | 92 | DEFAULT_TO_CALL_HERMIT = toCallHermit; |
| 87 | DEFAULT_STATISTICS_DIR = defaultStatisticsDir; | 93 | DEFAULT_STATISTICS_DIR = defaultStatisticsDir; |
| 88 | DEFAULT_SKOLEM_DEPTH = defaultSkolemDepth; | 94 | DEFAULT_SKOLEM_DEPTH = defaultSkolemDepth; |
| 95 | DEFAULT_MAX_TRIPLES_IN_SKOLEM_STORE = defaultMaxTriplesInSkolemStore; | ||
| 89 | } | 96 | } |
| 90 | 97 | ||
| 91 | String dataPath = null; | 98 | String dataPath = null; |
| @@ -108,6 +115,7 @@ public class PagodaProperties { | |||
| 108 | private boolean useAlwaysSimpleUpperBound = DEFAULT_USE_ALWAYS_SIMPLE_UPPER_BOUND; | 115 | private boolean useAlwaysSimpleUpperBound = DEFAULT_USE_ALWAYS_SIMPLE_UPPER_BOUND; |
| 109 | private SkolemUpperBoundOptions skolemUpperBound = DEFAULT_SKOLEM_UPPER_BOUND; | 116 | private SkolemUpperBoundOptions skolemUpperBound = DEFAULT_SKOLEM_UPPER_BOUND; |
| 110 | private Path statisticsDir = DEFAULT_STATISTICS_DIR; | 117 | private Path statisticsDir = DEFAULT_STATISTICS_DIR; |
| 118 | private long maxTriplesInSkolemStore = DEFAULT_MAX_TRIPLES_IN_SKOLEM_STORE; | ||
| 111 | 119 | ||
| 112 | public PagodaProperties(String path) { | 120 | public PagodaProperties(String path) { |
| 113 | java.util.Properties m_properties = new java.util.Properties(); | 121 | java.util.Properties m_properties = new java.util.Properties(); |
| @@ -233,4 +241,8 @@ public class PagodaProperties { | |||
| 233 | public void setStatisticsDir(Path statisticsDir) { | 241 | public void setStatisticsDir(Path statisticsDir) { |
| 234 | this.statisticsDir = statisticsDir; | 242 | this.statisticsDir = statisticsDir; |
| 235 | } | 243 | } |
| 244 | |||
| 245 | public long getMaxTriplesInSkolemStore() { | ||
| 246 | return maxTriplesInSkolemStore; | ||
| 247 | } | ||
| 236 | } | 248 | } |
