summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burwell <ben.burwell@trifecta.com>2016-11-19 17:39:05 -0500
committerBen Burwell <ben.burwell@trifecta.com>2016-11-19 17:39:05 -0500
commit9441ed331af3aa6b3ef45bf165e40faad18bc7fd (patch)
treee4f9155ccce81e3cb2145a41a68dacff6671950a
parent4a7ae2831563622ebb4a1d893764afd0e0e0dfbe (diff)
Use gradle
-rw-r--r--.gitignore2
-rw-r--r--build.gradle35
-rw-r--r--src/main/java/com/benburwell/planes/data/Aircraft.java (renamed from src/com/benburwell/planes/data/Aircraft.java)0
-rw-r--r--src/main/java/com/benburwell/planes/data/AircraftStore.java (renamed from src/com/benburwell/planes/data/AircraftStore.java)0
-rw-r--r--src/main/java/com/benburwell/planes/data/AircraftStoreListener.java (renamed from src/com/benburwell/planes/data/AircraftStoreListener.java)0
-rw-r--r--src/main/java/com/benburwell/planes/data/NavigationAid.java187
-rw-r--r--src/main/java/com/benburwell/planes/data/Position.java (renamed from src/com/benburwell/planes/data/Position.java)0
-rw-r--r--src/main/java/com/benburwell/planes/gui/AircraftTableComponent.java (renamed from src/com/benburwell/planes/gui/AircraftTableComponent.java)0
-rw-r--r--src/main/java/com/benburwell/planes/gui/AircraftTableModel.java (renamed from src/com/benburwell/planes/gui/AircraftTableModel.java)0
-rw-r--r--src/main/java/com/benburwell/planes/gui/GraphicsTheme.java (renamed from src/com/benburwell/planes/gui/GraphicsTheme.java)0
-rw-r--r--src/main/java/com/benburwell/planes/gui/Main1090.java (renamed from src/com/benburwell/planes/gui/Main1090.java)0
-rw-r--r--src/main/java/com/benburwell/planes/gui/MenuBarProvider.java (renamed from src/com/benburwell/planes/gui/MenuBarProvider.java)0
-rw-r--r--src/main/java/com/benburwell/planes/gui/TCPConnectionOptionDialog.java (renamed from src/com/benburwell/planes/gui/TCPConnectionOptionDialog.java)0
-rw-r--r--src/main/java/com/benburwell/planes/gui/ViewComponent.java (renamed from src/com/benburwell/planes/gui/ViewComponent.java)0
-rw-r--r--src/main/java/com/benburwell/planes/gui/aircraftmap/AircraftMap.java (renamed from src/com/benburwell/planes/gui/aircraftmap/AircraftMap.java)0
-rw-r--r--src/main/java/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java (renamed from src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java)0
-rw-r--r--src/main/java/com/benburwell/planes/gui/aircraftmap/Drawable.java (renamed from src/com/benburwell/planes/gui/aircraftmap/Drawable.java)0
-rw-r--r--src/main/java/com/benburwell/planes/gui/aircraftmap/GeoPoint.java (renamed from src/com/benburwell/planes/gui/aircraftmap/GeoPoint.java)0
-rw-r--r--src/main/java/com/benburwell/planes/gui/aircraftmap/Plane.java (renamed from src/com/benburwell/planes/gui/aircraftmap/Plane.java)0
-rw-r--r--src/main/java/com/benburwell/planes/sbs/AggregateDataSource.java (renamed from src/com/benburwell/planes/sbs/AggregateDataSource.java)0
-rw-r--r--src/main/java/com/benburwell/planes/sbs/DataListener.java (renamed from src/com/benburwell/planes/sbs/DataListener.java)0
-rw-r--r--src/main/java/com/benburwell/planes/sbs/DataSource.java (renamed from src/com/benburwell/planes/sbs/DataSource.java)0
-rw-r--r--src/main/java/com/benburwell/planes/sbs/MalformedPacketException.java (renamed from src/com/benburwell/planes/sbs/MalformedPacketException.java)0
-rw-r--r--src/main/java/com/benburwell/planes/sbs/MessageType.java (renamed from src/com/benburwell/planes/sbs/MessageType.java)0
-rw-r--r--src/main/java/com/benburwell/planes/sbs/SBSPacket.java (renamed from src/com/benburwell/planes/sbs/SBSPacket.java)0
-rw-r--r--src/main/java/com/benburwell/planes/sbs/TCPDataSource.java (renamed from src/com/benburwell/planes/sbs/TCPDataSource.java)0
-rw-r--r--src/main/java/com/benburwell/planes/sbs/TransmissionType.java (renamed from src/com/benburwell/planes/sbs/TransmissionType.java)0
-rw-r--r--src/main/java/com/benburwell/planes/sbs/UnrecognizedMessageTypeException.java (renamed from src/com/benburwell/planes/sbs/UnrecognizedMessageTypeException.java)0
-rw-r--r--src/main/java/com/benburwell/planes/sbs/UnrecognizedTransmissionTypeException.java (renamed from src/com/benburwell/planes/sbs/UnrecognizedTransmissionTypeException.java)0
29 files changed, 224 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 023292b..d3a5d60 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,5 @@ out/
planes.jar
.idea/
1090.iml
+build/
+.gradle/
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..ab2feff
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,35 @@
+apply plugin: 'java'
+apply plugin: 'application'
+
+compileJava.options.encoding = 'UTF-8'
+
+
+mainClassName = 'com.benburwell.planes.gui.Main1090'
+
+// In this section you declare where to find the dependencies of your project
+repositories {
+ // Use 'jcenter' for resolving your dependencies.
+ // You can declare any Maven/Ivy/file repository here.
+ jcenter()
+}
+
+// In this section you declare the dependencies for your production and test code
+dependencies {
+ // The production code uses the SLF4J logging API at compile time
+ //compile 'org.slf4j:slf4j-api:1.7.18'
+
+ // Declare the dependency for your favourite test framework you want to use in your tests.
+ // TestNG is also supported by the Gradle Test task. Just change the
+ // testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
+ // 'test.useTestNG()' to your build script.
+ //testCompile 'junit:junit:4.12'
+}
+
+jar {
+ manifest {
+ attributes(
+ 'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
+ 'Main-Class': 'com.benburwell.planes.gui.Main1090'
+ )
+ }
+}
diff --git a/src/com/benburwell/planes/data/Aircraft.java b/src/main/java/com/benburwell/planes/data/Aircraft.java
index 66a7a46..66a7a46 100644
--- a/src/com/benburwell/planes/data/Aircraft.java
+++ b/src/main/java/com/benburwell/planes/data/Aircraft.java
diff --git a/src/com/benburwell/planes/data/AircraftStore.java b/src/main/java/com/benburwell/planes/data/AircraftStore.java
index 076701d..076701d 100644
--- a/src/com/benburwell/planes/data/AircraftStore.java
+++ b/src/main/java/com/benburwell/planes/data/AircraftStore.java
diff --git a/src/com/benburwell/planes/data/AircraftStoreListener.java b/src/main/java/com/benburwell/planes/data/AircraftStoreListener.java
index 2ef635f..2ef635f 100644
--- a/src/com/benburwell/planes/data/AircraftStoreListener.java
+++ b/src/main/java/com/benburwell/planes/data/AircraftStoreListener.java
diff --git a/src/main/java/com/benburwell/planes/data/NavigationAid.java b/src/main/java/com/benburwell/planes/data/NavigationAid.java
new file mode 100644
index 0000000..09521a0
--- /dev/null
+++ b/src/main/java/com/benburwell/planes/data/NavigationAid.java
@@ -0,0 +1,187 @@
+package com.benburwell.planes.data;
+
+/**
+ * Frequencies in kHz, elevations in ft
+ *
+ * Created by ben on 11/19/16.
+ */
+public class NavigationAid {
+ private int id;
+ private String filename;
+ private String ident;
+ private String type;
+ private int frequency;
+ private double latitude;
+ private double longitude;
+ private int elevation;
+ private String isoCountry;
+ private double dmeFrequency;
+ private String dmeChannel;
+ private double dmeLatitude;
+ private double dmeLongitude;
+ private int dmeElevation;
+ private double slavedVariation;
+ private double magneticVariation;
+ private String usageType;
+ private String power;
+ private String associatedAirport;
+
+ public NavigationAid() {}
+
+ public static NavigationAid fromCSV(String row) {
+ NavigationAid aid = new NavigationAid();
+ return aid;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getFilename() {
+ return filename;
+ }
+
+ public void setFilename(String filename) {
+ this.filename = filename;
+ }
+
+ public String getIdent() {
+ return ident;
+ }
+
+ public void setIdent(String ident) {
+ this.ident = ident;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public int getFrequency() {
+ return frequency;
+ }
+
+ public void setFrequency(int frequency) {
+ this.frequency = frequency;
+ }
+
+ 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 int getElevation() {
+ return elevation;
+ }
+
+ public void setElevation(int elevation) {
+ this.elevation = elevation;
+ }
+
+ public String getIsoCountry() {
+ return isoCountry;
+ }
+
+ public void setIsoCountry(String isoCountry) {
+ this.isoCountry = isoCountry;
+ }
+
+ public double getDmeFrequency() {
+ return dmeFrequency;
+ }
+
+ public void setDmeFrequency(double dmeFrequency) {
+ this.dmeFrequency = dmeFrequency;
+ }
+
+ public String getDmeChannel() {
+ return dmeChannel;
+ }
+
+ public void setDmeChannel(String dmeChannel) {
+ this.dmeChannel = dmeChannel;
+ }
+
+ public double getDmeLatitude() {
+ return dmeLatitude;
+ }
+
+ public void setDmeLatitude(double dmeLatitude) {
+ this.dmeLatitude = dmeLatitude;
+ }
+
+ public double getDmeLongitude() {
+ return dmeLongitude;
+ }
+
+ public void setDmeLongitude(double dmeLongitude) {
+ this.dmeLongitude = dmeLongitude;
+ }
+
+ public int getDmeElevation() {
+ return dmeElevation;
+ }
+
+ public void setDmeElevation(int dmeElevation) {
+ this.dmeElevation = dmeElevation;
+ }
+
+ public double getSlavedVariation() {
+ return slavedVariation;
+ }
+
+ public void setSlavedVariation(double slavedVariation) {
+ this.slavedVariation = slavedVariation;
+ }
+
+ public double getMagneticVariation() {
+ return magneticVariation;
+ }
+
+ public void setMagneticVariation(double magneticVariation) {
+ this.magneticVariation = magneticVariation;
+ }
+
+ public String getUsageType() {
+ return usageType;
+ }
+
+ public void setUsageType(String usageType) {
+ this.usageType = usageType;
+ }
+
+ public String getPower() {
+ return power;
+ }
+
+ public void setPower(String power) {
+ this.power = power;
+ }
+
+ public String getAssociatedAirport() {
+ return associatedAirport;
+ }
+
+ public void setAssociatedAirport(String associatedAirport) {
+ this.associatedAirport = associatedAirport;
+ }
+}
diff --git a/src/com/benburwell/planes/data/Position.java b/src/main/java/com/benburwell/planes/data/Position.java
index 4b37235..4b37235 100644
--- a/src/com/benburwell/planes/data/Position.java
+++ b/src/main/java/com/benburwell/planes/data/Position.java
diff --git a/src/com/benburwell/planes/gui/AircraftTableComponent.java b/src/main/java/com/benburwell/planes/gui/AircraftTableComponent.java
index 221bdda..221bdda 100644
--- a/src/com/benburwell/planes/gui/AircraftTableComponent.java
+++ b/src/main/java/com/benburwell/planes/gui/AircraftTableComponent.java
diff --git a/src/com/benburwell/planes/gui/AircraftTableModel.java b/src/main/java/com/benburwell/planes/gui/AircraftTableModel.java
index 3931893..3931893 100644
--- a/src/com/benburwell/planes/gui/AircraftTableModel.java
+++ b/src/main/java/com/benburwell/planes/gui/AircraftTableModel.java
diff --git a/src/com/benburwell/planes/gui/GraphicsTheme.java b/src/main/java/com/benburwell/planes/gui/GraphicsTheme.java
index cece138..cece138 100644
--- a/src/com/benburwell/planes/gui/GraphicsTheme.java
+++ b/src/main/java/com/benburwell/planes/gui/GraphicsTheme.java
diff --git a/src/com/benburwell/planes/gui/Main1090.java b/src/main/java/com/benburwell/planes/gui/Main1090.java
index d7fc830..d7fc830 100644
--- a/src/com/benburwell/planes/gui/Main1090.java
+++ b/src/main/java/com/benburwell/planes/gui/Main1090.java
diff --git a/src/com/benburwell/planes/gui/MenuBarProvider.java b/src/main/java/com/benburwell/planes/gui/MenuBarProvider.java
index add77ce..add77ce 100644
--- a/src/com/benburwell/planes/gui/MenuBarProvider.java
+++ b/src/main/java/com/benburwell/planes/gui/MenuBarProvider.java
diff --git a/src/com/benburwell/planes/gui/TCPConnectionOptionDialog.java b/src/main/java/com/benburwell/planes/gui/TCPConnectionOptionDialog.java
index 609a70a..609a70a 100644
--- a/src/com/benburwell/planes/gui/TCPConnectionOptionDialog.java
+++ b/src/main/java/com/benburwell/planes/gui/TCPConnectionOptionDialog.java
diff --git a/src/com/benburwell/planes/gui/ViewComponent.java b/src/main/java/com/benburwell/planes/gui/ViewComponent.java
index 91c21cd..91c21cd 100644
--- a/src/com/benburwell/planes/gui/ViewComponent.java
+++ b/src/main/java/com/benburwell/planes/gui/ViewComponent.java
diff --git a/src/com/benburwell/planes/gui/aircraftmap/AircraftMap.java b/src/main/java/com/benburwell/planes/gui/aircraftmap/AircraftMap.java
index fad1082..fad1082 100644
--- a/src/com/benburwell/planes/gui/aircraftmap/AircraftMap.java
+++ b/src/main/java/com/benburwell/planes/gui/aircraftmap/AircraftMap.java
diff --git a/src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java b/src/main/java/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java
index e490dae..e490dae 100644
--- a/src/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java
+++ b/src/main/java/com/benburwell/planes/gui/aircraftmap/AircraftMapComponent.java
diff --git a/src/com/benburwell/planes/gui/aircraftmap/Drawable.java b/src/main/java/com/benburwell/planes/gui/aircraftmap/Drawable.java
index 01c16ba..01c16ba 100644
--- a/src/com/benburwell/planes/gui/aircraftmap/Drawable.java
+++ b/src/main/java/com/benburwell/planes/gui/aircraftmap/Drawable.java
diff --git a/src/com/benburwell/planes/gui/aircraftmap/GeoPoint.java b/src/main/java/com/benburwell/planes/gui/aircraftmap/GeoPoint.java
index d3eda40..d3eda40 100644
--- a/src/com/benburwell/planes/gui/aircraftmap/GeoPoint.java
+++ b/src/main/java/com/benburwell/planes/gui/aircraftmap/GeoPoint.java
diff --git a/src/com/benburwell/planes/gui/aircraftmap/Plane.java b/src/main/java/com/benburwell/planes/gui/aircraftmap/Plane.java
index 2f98bab..2f98bab 100644
--- a/src/com/benburwell/planes/gui/aircraftmap/Plane.java
+++ b/src/main/java/com/benburwell/planes/gui/aircraftmap/Plane.java
diff --git a/src/com/benburwell/planes/sbs/AggregateDataSource.java b/src/main/java/com/benburwell/planes/sbs/AggregateDataSource.java
index 2850404..2850404 100644
--- a/src/com/benburwell/planes/sbs/AggregateDataSource.java
+++ b/src/main/java/com/benburwell/planes/sbs/AggregateDataSource.java
diff --git a/src/com/benburwell/planes/sbs/DataListener.java b/src/main/java/com/benburwell/planes/sbs/DataListener.java
index b0da2ef..b0da2ef 100644
--- a/src/com/benburwell/planes/sbs/DataListener.java
+++ b/src/main/java/com/benburwell/planes/sbs/DataListener.java
diff --git a/src/com/benburwell/planes/sbs/DataSource.java b/src/main/java/com/benburwell/planes/sbs/DataSource.java
index 961c6e2..961c6e2 100644
--- a/src/com/benburwell/planes/sbs/DataSource.java
+++ b/src/main/java/com/benburwell/planes/sbs/DataSource.java
diff --git a/src/com/benburwell/planes/sbs/MalformedPacketException.java b/src/main/java/com/benburwell/planes/sbs/MalformedPacketException.java
index 6cbd1a3..6cbd1a3 100644
--- a/src/com/benburwell/planes/sbs/MalformedPacketException.java
+++ b/src/main/java/com/benburwell/planes/sbs/MalformedPacketException.java
diff --git a/src/com/benburwell/planes/sbs/MessageType.java b/src/main/java/com/benburwell/planes/sbs/MessageType.java
index a2ecc66..a2ecc66 100644
--- a/src/com/benburwell/planes/sbs/MessageType.java
+++ b/src/main/java/com/benburwell/planes/sbs/MessageType.java
diff --git a/src/com/benburwell/planes/sbs/SBSPacket.java b/src/main/java/com/benburwell/planes/sbs/SBSPacket.java
index 5684803..5684803 100644
--- a/src/com/benburwell/planes/sbs/SBSPacket.java
+++ b/src/main/java/com/benburwell/planes/sbs/SBSPacket.java
diff --git a/src/com/benburwell/planes/sbs/TCPDataSource.java b/src/main/java/com/benburwell/planes/sbs/TCPDataSource.java
index 2224d36..2224d36 100644
--- a/src/com/benburwell/planes/sbs/TCPDataSource.java
+++ b/src/main/java/com/benburwell/planes/sbs/TCPDataSource.java
diff --git a/src/com/benburwell/planes/sbs/TransmissionType.java b/src/main/java/com/benburwell/planes/sbs/TransmissionType.java
index fb1761e..fb1761e 100644
--- a/src/com/benburwell/planes/sbs/TransmissionType.java
+++ b/src/main/java/com/benburwell/planes/sbs/TransmissionType.java
diff --git a/src/com/benburwell/planes/sbs/UnrecognizedMessageTypeException.java b/src/main/java/com/benburwell/planes/sbs/UnrecognizedMessageTypeException.java
index ee30a87..ee30a87 100644
--- a/src/com/benburwell/planes/sbs/UnrecognizedMessageTypeException.java
+++ b/src/main/java/com/benburwell/planes/sbs/UnrecognizedMessageTypeException.java
diff --git a/src/com/benburwell/planes/sbs/UnrecognizedTransmissionTypeException.java b/src/main/java/com/benburwell/planes/sbs/UnrecognizedTransmissionTypeException.java
index abab067..abab067 100644
--- a/src/com/benburwell/planes/sbs/UnrecognizedTransmissionTypeException.java
+++ b/src/main/java/com/benburwell/planes/sbs/UnrecognizedTransmissionTypeException.java