From a5d45cb6eb239bf5427eb579edcaf74e8b176429 Mon Sep 17 00:00:00 2001 From: Arne Glaser Date: Thu, 5 Apr 2018 12:44:54 +0200 Subject: [PATCH] read matcher.distance.min as double --- src/main/java/com/bmwcarit/barefoot/matcher/MatcherServer.java | 2 +- src/main/java/com/bmwcarit/barefoot/tracker/TrackerServer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/bmwcarit/barefoot/matcher/MatcherServer.java b/src/main/java/com/bmwcarit/barefoot/matcher/MatcherServer.java index 1cebfb6b..71ce8048 100644 --- a/src/main/java/com/bmwcarit/barefoot/matcher/MatcherServer.java +++ b/src/main/java/com/bmwcarit/barefoot/matcher/MatcherServer.java @@ -256,7 +256,7 @@ public MatcherResponseFactory(Properties properties, RoadMap map, InputFormatter matcher.setSigma(Double.parseDouble( properties.getProperty("matcher.sigma", Double.toString(matcher.getSigma())))); interval = Integer.parseInt(properties.getProperty("matcher.interval.min", "1000")); - distance = Integer.parseInt(properties.getProperty("matcher.distance.min", "0")); + distance = Double.parseDouble(properties.getProperty("matcher.distance.min", Double.toString(0d))); int matcherThreads = Integer.parseInt(properties.getProperty("matcher.threads", Integer.toString(Runtime.getRuntime().availableProcessors()))); diff --git a/src/main/java/com/bmwcarit/barefoot/tracker/TrackerServer.java b/src/main/java/com/bmwcarit/barefoot/tracker/TrackerServer.java index 8a34e3cc..b967448f 100644 --- a/src/main/java/com/bmwcarit/barefoot/tracker/TrackerServer.java +++ b/src/main/java/com/bmwcarit/barefoot/tracker/TrackerServer.java @@ -117,7 +117,7 @@ public MatcherResponseFactory(Properties properties, RoadMap map) { matcher.setSigma(Double.parseDouble( properties.getProperty("matcher.sigma", Double.toString(matcher.getSigma())))); interval = Integer.parseInt(properties.getProperty("matcher.interval.min", "1000")); - distance = Integer.parseInt(properties.getProperty("matcher.distance.min", "0")); + distance = Double.parseDouble(properties.getProperty("matcher.distance.min", Double.toString(0d))); sensitive = Double.parseDouble( properties.getProperty("tracker.monitor.sensitive", Double.toString(0d))); TTL = Integer.parseInt(properties.getProperty("tracker.state.ttl", "60"));