mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-03 07:49:52 +00:00
Renamed Path to GeoPath
This commit is contained in:
+3
-3
@@ -30,7 +30,7 @@ import org.sleuthkit.datamodel.TskCoreException;
|
||||
/**
|
||||
* Class representing a series of waypoints that form a path.
|
||||
*/
|
||||
public class Path {
|
||||
public class GeoPath {
|
||||
|
||||
private final List<Waypoint> waypointList;
|
||||
private final String pathName;
|
||||
@@ -97,7 +97,7 @@ public class Path {
|
||||
* @param artifact BlackboardARtifact that this path represents, required
|
||||
* @param pathName Name for this path, maybe null or empty string.
|
||||
*/
|
||||
Path(BlackboardArtifact artifact, String pathName) {
|
||||
GeoPath(BlackboardArtifact artifact, String pathName) {
|
||||
this.waypointList = new ArrayList<>();
|
||||
this.pathName = pathName;
|
||||
this.artifact = artifact;
|
||||
@@ -133,7 +133,7 @@ public class Path {
|
||||
/**
|
||||
* Returns the label\display name for this path.
|
||||
*
|
||||
* @return Path label, empty string
|
||||
* @return GeoPath label, empty string
|
||||
*/
|
||||
public String getLabel() {
|
||||
return pathName != null ? pathName : "";
|
||||
@@ -32,7 +32,7 @@ import org.sleuthkit.datamodel.BlackboardAttribute;
|
||||
* more that two points.
|
||||
*
|
||||
*/
|
||||
public class Route extends Path{
|
||||
public class Route extends GeoPath{
|
||||
private final Long timestamp;
|
||||
|
||||
// This list is not expected to change after construction so the
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.sleuthkit.datamodel.blackboardutils.attributes.GeoWaypoint.GeoTrackPo
|
||||
/**
|
||||
* A GPS track with which wraps the TSK_GPS_TRACK artifact.
|
||||
*/
|
||||
public final class Track extends Path{
|
||||
public final class Track extends GeoPath{
|
||||
|
||||
private final Long startTimestamp;
|
||||
private final Long endTimeStamp;
|
||||
|
||||
@@ -43,7 +43,7 @@ public class Waypoint {
|
||||
final private String label;
|
||||
final private AbstractFile image;
|
||||
final private BlackboardArtifact artifact;
|
||||
final private Path path;
|
||||
final private GeoPath path;
|
||||
|
||||
final private List<Waypoint.Property> propertiesList;
|
||||
|
||||
@@ -78,7 +78,7 @@ public class Waypoint {
|
||||
* @throws GeoLocationDataException Exception will be thrown if artifact did
|
||||
* not have a valid longitude and latitude.
|
||||
*/
|
||||
Waypoint(BlackboardArtifact artifact, String label, Long timestamp, Double latitude, Double longitude, Double altitude, AbstractFile image, Map<BlackboardAttribute.ATTRIBUTE_TYPE, BlackboardAttribute> attributeMap, Path path) throws GeoLocationDataException {
|
||||
Waypoint(BlackboardArtifact artifact, String label, Long timestamp, Double latitude, Double longitude, Double altitude, AbstractFile image, Map<BlackboardAttribute.ATTRIBUTE_TYPE, BlackboardAttribute> attributeMap, GeoPath path) throws GeoLocationDataException {
|
||||
if (longitude == null || latitude == null) {
|
||||
throw new GeoLocationDataException("Invalid waypoint, null value passed for longitude or latitude");
|
||||
}
|
||||
@@ -178,7 +178,7 @@ public class Waypoint {
|
||||
* @return The waypoint route or null if the waypoint is not apart of a
|
||||
* route.
|
||||
*/
|
||||
public Path getPath() {
|
||||
public GeoPath getPath() {
|
||||
return path;
|
||||
}
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ public final class WaypointBuilder {
|
||||
public static List<Route> getRoutes(List<Waypoint> waypoints) {
|
||||
List<Route> routeList = new ArrayList<>();
|
||||
for (Waypoint point : waypoints) {
|
||||
Path path = point.getPath();
|
||||
GeoPath path = point.getPath();
|
||||
if (path instanceof Route) {
|
||||
Route route = (Route) path;
|
||||
if (!routeList.contains(route)) {
|
||||
@@ -154,7 +154,7 @@ public final class WaypointBuilder {
|
||||
public static List<Track> getTracks(List<Waypoint> waypoints) {
|
||||
List<Track> trackList = new ArrayList<>();
|
||||
for (Waypoint point : waypoints) {
|
||||
Path path = point.getPath();
|
||||
GeoPath path = point.getPath();
|
||||
if (path instanceof Track) {
|
||||
Track route = (Track) path;
|
||||
if (!trackList.contains(route)) {
|
||||
|
||||
Reference in New Issue
Block a user