summaryrefslogtreecommitdiff
path: root/src/main/java/com/benburwell/planes/data
diff options
context:
space:
mode:
authorBen Burwell <ben.burwell@trifecta.com>2016-11-20 01:34:08 -0500
committerBen Burwell <ben.burwell@trifecta.com>2016-11-20 01:34:08 -0500
commitf1e32ed443bafc03448f0f3b36c712b9293e71e7 (patch)
treebd4c5f6dd692bd3d1f16bdd00f57d996cecc5688 /src/main/java/com/benburwell/planes/data
parentbe4974518d4e24f66c19ceffc1e633e3e306956b (diff)
File cleanup
Diffstat (limited to 'src/main/java/com/benburwell/planes/data')
-rw-r--r--src/main/java/com/benburwell/planes/data/AbstractCSVReader.java4
-rw-r--r--src/main/java/com/benburwell/planes/data/Aircraft.java7
-rw-r--r--src/main/java/com/benburwell/planes/data/AircraftStore.java2
-rw-r--r--src/main/java/com/benburwell/planes/data/AircraftStoreListener.java2
-rw-r--r--src/main/java/com/benburwell/planes/data/Airport.java2
-rw-r--r--src/main/java/com/benburwell/planes/data/CSVObjectStore.java9
-rw-r--r--src/main/java/com/benburwell/planes/data/NavigationAid.java2
-rw-r--r--src/main/java/com/benburwell/planes/data/Position.java2
8 files changed, 15 insertions, 15 deletions
diff --git a/src/main/java/com/benburwell/planes/data/AbstractCSVReader.java b/src/main/java/com/benburwell/planes/data/AbstractCSVReader.java
index 66084ed..0f88be2 100644
--- a/src/main/java/com/benburwell/planes/data/AbstractCSVReader.java
+++ b/src/main/java/com/benburwell/planes/data/AbstractCSVReader.java
@@ -3,8 +3,8 @@ package com.benburwell.planes.data;
import org.apache.commons.csv.CSVRecord;
/**
- * Created by ben on 11/19/16.
+ * @author ben
*/
-public abstract class AbstractCSVReader {
+abstract class AbstractCSVReader {
public abstract void readRecord(CSVRecord record);
}
diff --git a/src/main/java/com/benburwell/planes/data/Aircraft.java b/src/main/java/com/benburwell/planes/data/Aircraft.java
index 9f6b881..280c6bd 100644
--- a/src/main/java/com/benburwell/planes/data/Aircraft.java
+++ b/src/main/java/com/benburwell/planes/data/Aircraft.java
@@ -7,14 +7,13 @@ import java.util.List;
import java.util.ArrayList;
/**
- * Created by ben on 11/15/16.
+ * @author ben
*/
public class Aircraft implements Comparable<Aircraft> {
private final String hexIdent;
private Position currentPosition = new Position();
private List<Position> positionHistory = new ArrayList<>();
private String callsign = "";
- private String squawk = "";
private long packetCount = 0;
private double track;
private double groundSpeed;
@@ -75,10 +74,6 @@ public class Aircraft implements Comparable<Aircraft> {
return callsign;
}
- public String getSquawk() {
- return squawk;
- }
-
public Long getPacketCount() {
return packetCount;
}
diff --git a/src/main/java/com/benburwell/planes/data/AircraftStore.java b/src/main/java/com/benburwell/planes/data/AircraftStore.java
index 076701d..311c20c 100644
--- a/src/main/java/com/benburwell/planes/data/AircraftStore.java
+++ b/src/main/java/com/benburwell/planes/data/AircraftStore.java
@@ -8,7 +8,7 @@ import java.util.List;
import java.util.ArrayList;
/**
- * Created by ben on 11/17/16.
+ * @author ben
*/
public class AircraftStore {
private Map<String,Aircraft> aircraftMap = new HashMap<>();
diff --git a/src/main/java/com/benburwell/planes/data/AircraftStoreListener.java b/src/main/java/com/benburwell/planes/data/AircraftStoreListener.java
index 2ef635f..0f62359 100644
--- a/src/main/java/com/benburwell/planes/data/AircraftStoreListener.java
+++ b/src/main/java/com/benburwell/planes/data/AircraftStoreListener.java
@@ -1,7 +1,7 @@
package com.benburwell.planes.data;
/**
- * Created by ben on 11/17/16.
+ * @author ben
*/
public interface AircraftStoreListener {
void aircraftStoreChanged();
diff --git a/src/main/java/com/benburwell/planes/data/Airport.java b/src/main/java/com/benburwell/planes/data/Airport.java
index ab16248..07cbceb 100644
--- a/src/main/java/com/benburwell/planes/data/Airport.java
+++ b/src/main/java/com/benburwell/planes/data/Airport.java
@@ -3,7 +3,7 @@ package com.benburwell.planes.data;
import org.apache.commons.csv.CSVRecord;
/**
- * Created by ben on 11/19/16.
+ * @author ben
*/
public class Airport extends AbstractCSVReader {
private int id;
diff --git a/src/main/java/com/benburwell/planes/data/CSVObjectStore.java b/src/main/java/com/benburwell/planes/data/CSVObjectStore.java
index a92e0a2..d04cfe8 100644
--- a/src/main/java/com/benburwell/planes/data/CSVObjectStore.java
+++ b/src/main/java/com/benburwell/planes/data/CSVObjectStore.java
@@ -4,13 +4,18 @@ import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;
-import java.io.*;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.Reader;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
/**
- * Created by ben on 11/19/16.
+ * @author ben
*/
public class CSVObjectStore<T extends AbstractCSVReader> {
private List<T> objects = new ArrayList<>();
diff --git a/src/main/java/com/benburwell/planes/data/NavigationAid.java b/src/main/java/com/benburwell/planes/data/NavigationAid.java
index d730e7e..35a25ad 100644
--- a/src/main/java/com/benburwell/planes/data/NavigationAid.java
+++ b/src/main/java/com/benburwell/planes/data/NavigationAid.java
@@ -5,7 +5,7 @@ import org.apache.commons.csv.CSVRecord;
/**
* Frequencies in kHz, elevations in ft
*
- * Created by ben on 11/19/16.
+ * @author ben
*/
public class NavigationAid extends AbstractCSVReader {
private int id;
diff --git a/src/main/java/com/benburwell/planes/data/Position.java b/src/main/java/com/benburwell/planes/data/Position.java
index 4b37235..7705150 100644
--- a/src/main/java/com/benburwell/planes/data/Position.java
+++ b/src/main/java/com/benburwell/planes/data/Position.java
@@ -3,7 +3,7 @@ package com.benburwell.planes.data;
import java.util.Date;
/**
- * Created by ben on 11/15/16.
+ * @author ben
*/
public class Position {
private Date timestamp = new Date(System.currentTimeMillis());