diff options
-rw-r--r-- | src/org/traccar/FilterHandler.java | 8 | ||||
-rw-r--r-- | test/org/traccar/FilterHandlerTest.java | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/org/traccar/FilterHandler.java b/src/org/traccar/FilterHandler.java index e01ee156f..5e1214aba 100644 --- a/src/org/traccar/FilterHandler.java +++ b/src/org/traccar/FilterHandler.java @@ -44,6 +44,10 @@ public class FilterHandler extends BaseDataHandler { this.filterDuplicate = filterDuplicate; } + public void setFilterFuture(long filterFuture) { + this.filterFuture = filterFuture; + } + public void setFilterApproximate(boolean filterApproximate) { this.filterApproximate = filterApproximate; } @@ -56,6 +60,10 @@ public class FilterHandler extends BaseDataHandler { this.filterDistance = filterDistance; } + public void setFilterMaxSpeed(int filterMaxSpeed) { + this.filterMaxSpeed = filterMaxSpeed; + } + public void setFilterLimit(long filterLimit) { this.filterLimit = filterLimit; } diff --git a/test/org/traccar/FilterHandlerTest.java b/test/org/traccar/FilterHandlerTest.java index 452592048..02023096e 100644 --- a/test/org/traccar/FilterHandlerTest.java +++ b/test/org/traccar/FilterHandlerTest.java @@ -22,11 +22,12 @@ public class FilterHandlerTest extends BaseTest { filtingHandler.setFilterInvalid(true); filtingHandler.setFilterZero(true); filtingHandler.setFilterDuplicate(true); + filtingHandler.setFilterFuture(5 * 60); filtingHandler.setFilterApproximate(true); filtingHandler.setFilterStatic(true); filtingHandler.setFilterDistance(10); + filtingHandler.setFilterMaxSpeed(500); filtingHandler.setFilterLimit(10); - filtingHandler.setFilterFuture(5 * 60); } @After |