20 package org.sleuthkit.autopsy.geolocation.datamodel;
22 import java.util.ArrayList;
23 import java.util.Collections;
24 import java.util.List;
25 import java.util.logging.Level;
53 List<BlackboardArtifact> artifacts = null;
55 artifacts = skCase.getBlackboardArtifacts(BlackboardArtifact.ARTIFACT_TYPE.TSK_GPS_ROUTE);
56 }
catch (TskCoreException ex) {
60 List<Route> routes =
new ArrayList<>();
61 for (BlackboardArtifact artifact : artifacts) {
81 List<BlackboardArtifact> artifacts = null;
82 boolean allParsedSuccessfully =
true;
83 List<Track> tracks =
new ArrayList<>();
85 artifacts = skCase.getBlackboardArtifacts(BlackboardArtifact.ARTIFACT_TYPE.TSK_GPS_TRACK);
86 for (BlackboardArtifact artifact : artifacts) {
87 if (sourceList == null || sourceList.contains(artifact.getDataSource())) {
89 tracks.add(
new Track(artifact));
92 LOGGER.log(Level.WARNING,
"Error loading track from artifact with ID " + artifact.getArtifactID(), e);
93 allParsedSuccessfully =
false;
97 }
catch (TskCoreException ex) {
116 List<BlackboardArtifact> artifacts;
117 boolean allParsedSuccessfully =
true;
118 List<Area> areas =
new ArrayList<>();
120 artifacts = skCase.getBlackboardArtifacts(BlackboardArtifact.ARTIFACT_TYPE.TSK_GPS_AREA);
121 for (BlackboardArtifact artifact : artifacts) {
122 if (sourceList == null || sourceList.contains(artifact.getDataSource())) {
124 areas.add(
new Area(artifact));
127 LOGGER.log(Level.WARNING,
"Error loading track from artifact with ID " + artifact.getArtifactID(), e);
128 allParsedSuccessfully =
false;
132 }
catch (TskCoreException ex) {
144 GeoPath(BlackboardArtifact artifact, String pathName) {
145 this.waypointList =
new ArrayList<>();
155 final void addToPath(
Waypoint point) {
156 waypointList.add(point);
165 return Collections.unmodifiableList(waypointList);
183 return pathName != null ? pathName :
"";
static List< Route > getRoutes(SleuthkitCase skCase)
final List< Waypoint > waypointList
static GeoLocationParseResult< Track > getTracks(SleuthkitCase skCase, List<?extends Content > sourceList)
final BlackboardArtifact getArtifact()
final BlackboardArtifact artifact
static final Logger LOGGER
final List< Waypoint > getPath()
synchronized static Logger getLogger(String name)
static GeoLocationParseResult< Area > getAreas(SleuthkitCase skCase, List<?extends Content > sourceList)