summaryrefslogtreecommitdiff
path: root/src/com/benburwell/planes/data/Position.java
diff options
context:
space:
mode:
authorBen Burwell <ben.burwell@trifecta.com>2016-11-15 23:43:08 -0500
committerBen Burwell <ben.burwell@trifecta.com>2016-11-15 23:43:08 -0500
commit54b0fab72106672ea1d9ca4d81d782b6bf1c6820 (patch)
tree3928fbfc9e0021d15326caa4500b98db13b0a75b /src/com/benburwell/planes/data/Position.java
parente2ae5749a522b0d4d2657a2cac571b1524d33cfa (diff)
Implement data table
Diffstat (limited to 'src/com/benburwell/planes/data/Position.java')
-rw-r--r--src/com/benburwell/planes/data/Position.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/com/benburwell/planes/data/Position.java b/src/com/benburwell/planes/data/Position.java
new file mode 100644
index 0000000..4b37235
--- /dev/null
+++ b/src/com/benburwell/planes/data/Position.java
@@ -0,0 +1,46 @@
+package com.benburwell.planes.data;
+
+import java.util.Date;
+
+/**
+ * Created by ben on 11/15/16.
+ */
+public class Position {
+ private Date timestamp = new Date(System.currentTimeMillis());
+ private Double latitude = 0.0;
+ private Double longitude = 0.0;
+
+ public Date getTimestamp() {
+ return timestamp;
+ }
+
+ public void setTimestamp(Date timestamp) {
+ this.timestamp = timestamp;
+ }
+
+ public double getLatitude() {
+ return latitude;
+ }
+
+ public void setLatitude(double latitude) {
+ this.latitude = latitude;
+ }
+
+ public double getLongitude() {
+ return longitude;
+ }
+
+ public void setLongitude(double longitude) {
+ this.longitude = longitude;
+ }
+
+ public double getAltitude() {
+ return altitude;
+ }
+
+ public void setAltitude(double altitude) {
+ this.altitude = altitude;
+ }
+
+ private double altitude = 0;
+}