diff options
author | Abyss777 <abyss@fox5.ru> | 2016-06-16 11:23:41 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-06-16 11:23:41 +0500 |
commit | 1b8e05ce34ff7c576c29e383601f74cb8c01d728 (patch) | |
tree | 72356a7e9384d46aa2ed31e08765a893abe7c8b8 /src/org/traccar/BaseEventHandler.java | |
parent | 3f0f6c1f6ec4665783ec62a65f8f30a33f1d2152 (diff) | |
download | trackermap-server-1b8e05ce34ff7c576c29e383601f74cb8c01d728.tar.gz trackermap-server-1b8e05ce34ff7c576c29e383601f74cb8c01d728.tar.bz2 trackermap-server-1b8e05ce34ff7c576c29e383601f74cb8c01d728.zip |
Moved variables from parent to inheritor
Diffstat (limited to 'src/org/traccar/BaseEventHandler.java')
-rw-r--r-- | src/org/traccar/BaseEventHandler.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/org/traccar/BaseEventHandler.java b/src/org/traccar/BaseEventHandler.java index 143c2dc2b..1ae9d2c6d 100644 --- a/src/org/traccar/BaseEventHandler.java +++ b/src/org/traccar/BaseEventHandler.java @@ -17,35 +17,14 @@ package org.traccar; import java.util.Collection; -import org.traccar.model.Device; import org.traccar.model.Event; import org.traccar.model.Position; public abstract class BaseEventHandler extends BaseDataHandler { - private boolean isLastPosition = false; - - public boolean isLastPosition() { - return isLastPosition; - } - - private Device device; - - public Device getDevice() { - return device; - } - @Override protected Position handlePosition(Position position) { - device = Context.getDataManager().getDeviceById(position.getDeviceId()); - if (device != null) { - long lastPositionId = device.getPositionId(); - if (position.getId() == lastPositionId) { - isLastPosition = true; - } - } - Collection<Event> events = analyzePosition(position); if (events != null) { for (Event event : events) { |