summaryrefslogtreecommitdiff
path: root/src/com/benburwell/planes/data/Aircraft.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/benburwell/planes/data/Aircraft.java')
-rw-r--r--src/com/benburwell/planes/data/Aircraft.java8
1 files changed, 8 insertions, 0 deletions
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<Aircraft> {
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<Aircraft> {
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<Aircraft> {
return this.groundSpeed;
}
+ public double getVerticalRate() {
+ return this.verticalRate;
+ }
+
@Override
public int compareTo(Aircraft that) {
return this.getHexIdent().compareTo(that.getHexIdent());