diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-07 19:27:47 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-07 19:27:47 +1300 |
commit | 3f5aef83e284a1c4f4e608d57d7f3330af6ea12a (patch) | |
tree | 034547ebc5296ea0f2fef6c14926d6d006a14bfa /src/org/traccar/model/Position.java | |
parent | 3bf3ade7e1e0f7abf69d0e98ed064f455e2cff69 (diff) | |
download | trackermap-server-3f5aef83e284a1c4f4e608d57d7f3330af6ea12a.tar.gz trackermap-server-3f5aef83e284a1c4f4e608d57d7f3330af6ea12a.tar.bz2 trackermap-server-3f5aef83e284a1c4f4e608d57d7f3330af6ea12a.zip |
Clean up rest of the models
Diffstat (limited to 'src/org/traccar/model/Position.java')
-rw-r--r-- | src/org/traccar/model/Position.java | 80 |
1 files changed, 64 insertions, 16 deletions
diff --git a/src/org/traccar/model/Position.java b/src/org/traccar/model/Position.java index 964327a5f..ab535ba2b 100644 --- a/src/org/traccar/model/Position.java +++ b/src/org/traccar/model/Position.java @@ -25,8 +25,14 @@ public class Position extends Event implements Factory { } private Date fixTime; - public Date getFixTime() { return fixTime; } - public void setFixTime(Date fixTime) { this.fixTime = fixTime; } + + public Date getFixTime() { + return fixTime; + } + + public void setFixTime(Date fixTime) { + this.fixTime = fixTime; + } public void setTime(Date time) { setDeviceTime(time); @@ -34,31 +40,73 @@ public class Position extends Event implements Factory { } private boolean valid; - public boolean getValid() { return valid; } - public void setValid(boolean valid) { this.valid = valid; } + + public boolean getValid() { + return valid; + } + + public void setValid(boolean valid) { + this.valid = valid; + } private double latitude; - public double getLatitude() { return latitude; } - public void setLatitude(double latitude) { this.latitude = latitude; } + + public double getLatitude() { + return latitude; + } + + public void setLatitude(double latitude) { + this.latitude = latitude; + } private double longitude; - public double getLongitude() { return longitude; } - public void setLongitude(double longitude) { this.longitude = longitude; } + + public double getLongitude() { + return longitude; + } + + public void setLongitude(double longitude) { + this.longitude = longitude; + } private double altitude; - public double getAltitude() { return altitude; } - public void setAltitude(double altitude) { this.altitude = altitude; } + + public double getAltitude() { + return altitude; + } + + public void setAltitude(double altitude) { + this.altitude = altitude; + } private double speed; // value in knots - public double getSpeed() { return speed; } - public void setSpeed(double speed) { this.speed = speed; } + + public double getSpeed() { + return speed; + } + + public void setSpeed(double speed) { + this.speed = speed; + } private double course; - public double getCourse() { return course; } - public void setCourse(double course) { this.course = course; } + + public double getCourse() { + return course; + } + + public void setCourse(double course) { + this.course = course; + } private String address; - public String getAddress() { return address; } - public void setAddress(String address) { this.address = address; } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } } |