diff options
author | Jamie Guthrie <jamie.guthrie@gmail.com> | 2023-08-15 21:20:21 +0200 |
---|---|---|
committer | Jamie Guthrie <jamie.guthrie@gmail.com> | 2023-08-15 21:20:21 +0200 |
commit | 95059cb3db832a26c6dbf3706aded3a2ffbcf3d8 (patch) | |
tree | 836da7ddf4c2edfa75a7aecb1bf8e404bf4f77cc /src/main/java/org/traccar/session/state | |
parent | 25c8da353ead804eabb5b3388f711f20585feff3 (diff) | |
download | trackermap-server-95059cb3db832a26c6dbf3706aded3a2ffbcf3d8.tar.gz trackermap-server-95059cb3db832a26c6dbf3706aded3a2ffbcf3d8.tar.bz2 trackermap-server-95059cb3db832a26c6dbf3706aded3a2ffbcf3d8.zip |
Rename setEvent method to checkEvent
Diffstat (limited to 'src/main/java/org/traccar/session/state')
-rw-r--r-- | src/main/java/org/traccar/session/state/OverspeedProcessor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/session/state/OverspeedProcessor.java b/src/main/java/org/traccar/session/state/OverspeedProcessor.java index a6cd72322..b23649570 100644 --- a/src/main/java/org/traccar/session/state/OverspeedProcessor.java +++ b/src/main/java/org/traccar/session/state/OverspeedProcessor.java @@ -34,7 +34,7 @@ public final class OverspeedProcessor { if (oldState) { boolean newState = position.getSpeed() > speedLimit; if (newState) { - setEvent(state, position, speedLimit, minimalDuration); + checkEvent(state, position, speedLimit, minimalDuration); } else { state.setOverspeedState(false); state.setOverspeedTime(null); @@ -45,11 +45,11 @@ public final class OverspeedProcessor { state.setOverspeedTime(position.getFixTime()); state.setOverspeedGeofenceId(geofenceId); - setEvent(state, position, speedLimit, minimalDuration); + checkEvent(state, position, speedLimit, minimalDuration); } } - private static void setEvent(OverspeedState state, Position position, double speedLimit, long minimalDuration) { + private static void checkEvent(OverspeedState state, Position position, double speedLimit, long minimalDuration) { if (state.getOverspeedTime() != null) { long oldTime = state.getOverspeedTime().getTime(); long newTime = position.getFixTime().getTime(); |