From 4a7ae2831563622ebb4a1d893764afd0e0e0dfbe Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sat, 19 Nov 2016 16:50:33 -0500 Subject: Add prediction --- src/com/benburwell/planes/data/Aircraft.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/com/benburwell/planes/data/Aircraft.java') diff --git a/src/com/benburwell/planes/data/Aircraft.java b/src/com/benburwell/planes/data/Aircraft.java index e0ca449..66a7a46 100644 --- a/src/com/benburwell/planes/data/Aircraft.java +++ b/src/com/benburwell/planes/data/Aircraft.java @@ -17,6 +17,7 @@ public class Aircraft implements Comparable { private long packetCount = 0; private double track; private double groundSpeed; + private double verticalRate; public Aircraft(String hexIdent) { this.hexIdent = hexIdent; @@ -45,6 +46,9 @@ public class Aircraft implements Comparable { if (packet.getGroundSpeed() != null) { this.groundSpeed = packet.getGroundSpeed(); } + if (packet.getVerticalRate() != null) { + this.verticalRate = packet.getVerticalRate(); + } } public Position getCurrentPosition() { @@ -75,6 +79,10 @@ public class Aircraft implements Comparable { return this.groundSpeed; } + public double getVerticalRate() { + return this.verticalRate; + } + @Override public int compareTo(Aircraft that) { return this.getHexIdent().compareTo(that.getHexIdent()); -- cgit v1.2.3