aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-12-31 12:04:28 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-12-31 12:04:28 +1300
commitaba7cfe71c1ed3290d3b331169c5d56010763b15 (patch)
treeb7b7a78c3c873e7f967af2b478dcd2e3a5c0a3a6 /src/org/traccar/model
parentc241127ab32eab9a63cc04fdbd99c08fa0e7b25f (diff)
downloadtrackermap-server-aba7cfe71c1ed3290d3b331169c5d56010763b15.tar.gz
trackermap-server-aba7cfe71c1ed3290d3b331169c5d56010763b15.tar.bz2
trackermap-server-aba7cfe71c1ed3290d3b331169c5d56010763b15.zip
Add filter unit tests
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r--src/org/traccar/model/Position.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/org/traccar/model/Position.java b/src/org/traccar/model/Position.java
index 0ee79b744..898b0d144 100644
--- a/src/org/traccar/model/Position.java
+++ b/src/org/traccar/model/Position.java
@@ -22,6 +22,30 @@ import java.util.Date;
*/
public class Position extends Data {
+ public Position() {
+ }
+
+ public Position(
+ long deviceId,
+ Date time,
+ boolean valid,
+ double latitude,
+ double longitude,
+ double altitude,
+ double speed,
+ double course) {
+
+ setDeviceId(deviceId);
+ setTime(time);
+ setValid(valid);
+ setLatitude(latitude);
+ setLongitude(longitude);
+ setAltitude(altitude);
+ setSpeed(speed);
+ setCourse(course);
+ }
+
+
/**
* Time (UTC)
*/