19 package org.sleuthkit.datamodel.blackboardutils.attributes;
21 import com.google.gson.annotations.SerializedName;
22 import java.util.ArrayList;
23 import java.util.Iterator;
24 import java.util.List;
37 public class GeoWaypoints implements Iterable<GeoWaypoints.Waypoint> {
39 private final List<Waypoint> points;
45 points =
new ArrayList<>();
54 if (wayPoint == null) {
55 throw new IllegalArgumentException(
"addPoint was passed a null waypoint");
67 return points.isEmpty();
72 return points.iterator();
82 @SerializedName(
"TSK_GEO_LATITUDE")
83 private final Double latitude;
84 @SerializedName(
"TSK_GEO_LONGITUDE")
85 private final Double longitude;
86 @SerializedName(
"TSK_GEO_ALTITUDE")
87 private final Double altitude;
88 @SerializedName(
"TSK_NAME")
89 private final String name;
101 public Waypoint(Double latitude, Double longitude, Double altitude, String name) {
102 if (latitude == null) {
103 throw new IllegalArgumentException(
"Constructor was passed null latitude");
106 if (longitude == null) {
107 throw new IllegalArgumentException(
"Constructor was passed null longitude");
110 this.latitude = latitude;
111 this.longitude = longitude;
112 this.altitude = altitude;
Iterator< Waypoint > iterator()
Waypoint(Double latitude, Double longitude, Double altitude, String name)
void addPoint(Waypoint wayPoint)