diff options
author | Abyss777 <abyss@fox5.ru> | 2017-08-14 14:43:17 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-08-14 15:37:59 +0500 |
commit | 8313471a752dc08e5e7a270349e9f03417672b08 (patch) | |
tree | ac124a5eb3009826a53c6b57342a9719716081f7 /src/org/traccar/reports/model/TripsConfig.java | |
parent | 30e8409375f9992a5248f7e2597691c0ee08188c (diff) | |
download | trackermap-server-8313471a752dc08e5e7a270349e9f03417672b08.tar.gz trackermap-server-8313471a752dc08e5e7a270349e9f03417672b08.tar.bz2 trackermap-server-8313471a752dc08e5e7a270349e9f03417672b08.zip |
Correct motion state by ignition.
Diffstat (limited to 'src/org/traccar/reports/model/TripsConfig.java')
-rw-r--r-- | src/org/traccar/reports/model/TripsConfig.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/org/traccar/reports/model/TripsConfig.java b/src/org/traccar/reports/model/TripsConfig.java index 7067781d7..039094b89 100644 --- a/src/org/traccar/reports/model/TripsConfig.java +++ b/src/org/traccar/reports/model/TripsConfig.java @@ -21,13 +21,14 @@ public class TripsConfig { public TripsConfig() { } - public TripsConfig(double minimalTripDistance, long minimalTripDuration, - long minimalParkingDuration, boolean greedyParking, long minimalNoDataDuration) { + public TripsConfig(double minimalTripDistance, long minimalTripDuration, long minimalParkingDuration, + boolean greedyParking, long minimalNoDataDuration, boolean stopOnIgnitionOff) { this.minimalTripDistance = minimalTripDistance; this.minimalTripDuration = minimalTripDuration; this.minimalParkingDuration = minimalParkingDuration; this.greedyParking = greedyParking; this.minimalNoDataDuration = minimalNoDataDuration; + this.stopOnIgnitionOff = stopOnIgnitionOff; } private double minimalTripDistance; @@ -80,4 +81,14 @@ public class TripsConfig { this.minimalNoDataDuration = minimalNoDataDuration; } + private boolean stopOnIgnitionOff; + + public boolean getStopOnIgnitionOff() { + return stopOnIgnitionOff; + } + + public void setStopOnIgnitionOff(boolean stopOnIgnitionOff) { + this.stopOnIgnitionOff = stopOnIgnitionOff; + } + } |