19 package org.sleuthkit.datamodel.blackboardutils;
21 import java.util.ArrayList;
23 import java.util.List;
40 private final String programName;
59 super(caseDb, moduleName, srcContent);
60 this.programName = programName;
84 if (trackPoints == null) {
85 throw new IllegalArgumentException(String.format(
"addTrack was passed a null list of track points"));
89 List<BlackboardAttribute> attributes =
new ArrayList<>();
91 if (trackName != null) {
95 attributes.add(trackPointAttributeUtil.
toAttribute(getModuleName(), trackPoints));
97 if (programName != null) {
101 if (moreAttributes != null) {
102 attributes.addAll(moreAttributes);
107 getSleuthkitCase().getBlackboard().postArtifact(artifact, getModuleName());
134 if (wayPoints == null) {
135 throw new IllegalArgumentException(String.format(
"addRoute was passed a null list of waypoints"));
139 List<BlackboardAttribute> attributes =
new ArrayList<>();
141 attributes.add(waypointsAttributeUtil.
toAttribute(getModuleName(), wayPoints));
143 if (routeName != null) {
147 if (creationTime != null) {
151 if (programName != null) {
155 if (moreAttributes != null) {
156 attributes.addAll(moreAttributes);
161 getSleuthkitCase().getBlackboard().postArtifact(artifact, getModuleName());
void addAttributes(Collection< BlackboardAttribute > attributes)
BlackboardArtifact addRoute(String routeName, Long creationTime, GeoWaypointList wayPoints, List< BlackboardAttribute > moreAttributes)
BlackboardArtifact newArtifact(int artifactTypeID)
GeoArtifactsHelper(SleuthkitCase caseDb, String moduleName, String programName, Content srcContent)
BlackboardArtifact addTrack(String trackName, GeoTrackPointList trackPoints, List< BlackboardAttribute > moreAttributes)
BlackboardAttribute toAttribute(String moduleName, GeoTrackPointList value)
BlackboardAttribute toAttribute(String moduleName, GeoWaypointList value)