Sleuth Kit Java Bindings (JNI) 4.14.0
Java bindings for using The Sleuth Kit
Loading...
Searching...
No Matches
AnalysisResult.java
Go to the documentation of this file.
1/*
2 * Sleuth Kit Data Model
3 *
4 * Copyright 2020-2025 Basis Technology Corp.
5 * Contact: carrier <at> sleuthkit <dot> org
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19package org.sleuthkit.datamodel;
20
28public class AnalysisResult extends BlackboardArtifact {
29
30 private final String conclusion; // conclusion of analysis - may be an empty string
31 private final Score score; // relevance score based on the conclusion
32 private final String configuration; // Optional descriptor of configuration of analysis technique (such as a set name). Maybe empty string
33 private final String justification; // justification/explanation of the conclusion. Maybe empty string.
34
35 private boolean ignoreResult = false; // ignore this analysis result when computing score of the parent object.
36
58 AnalysisResult(SleuthkitCase sleuthkitCase, long artifactID, long sourceObjId, long artifactObjId, Long dataSourceObjId, int artifactTypeID, String artifactTypeName, String displayName, ReviewStatus reviewStatus, Score score, String conclusion, String configuration, String justification) {
59 super(sleuthkitCase, artifactID, sourceObjId, artifactObjId, dataSourceObjId, artifactTypeID, artifactTypeName, displayName, reviewStatus);
60 this.score = score;
61 this.conclusion = (conclusion != null) ? conclusion : "";
62 this.configuration = (configuration != null) ? configuration : "";
63 this.justification = (justification != null) ? justification : "";
64 }
65
89 AnalysisResult(SleuthkitCase sleuthkitCase, long artifactID, long sourceObjId,
90 long artifactObjId, Long dataSourceObjId, int artifactTypeID, String artifactTypeName,
91 String displayName, ReviewStatus reviewStatus, Score score, String conclusion,
92 String configuration, String justification, boolean ignoreResult) {
93
94 super(sleuthkitCase, artifactID, sourceObjId, artifactObjId, dataSourceObjId, artifactTypeID, artifactTypeName, displayName, reviewStatus);
95 this.score = score;
96 this.conclusion = (conclusion != null) ? conclusion : "";
97 this.configuration = (configuration != null) ? configuration : "";
98 this.justification = (justification != null) ? justification : "";
99 this.ignoreResult = ignoreResult;
100 }
101
124 AnalysisResult(SleuthkitCase sleuthkitCase, long artifactID, long sourceObjId, long artifactObjID, Long dataSourceObjID, int artifactTypeID, String artifactTypeName, String displayName, ReviewStatus reviewStatus, boolean isNew, Score score, String conclusion, String configuration, String justification) {
125 super(sleuthkitCase, artifactID, sourceObjId, artifactObjID, dataSourceObjID, artifactTypeID, artifactTypeName, displayName, reviewStatus, isNew);
126 this.score = score;
127 this.conclusion = (conclusion != null) ? conclusion : "";
128 this.configuration = (configuration != null) ? configuration : "";
129 this.justification = (justification != null) ? justification : "";
130 }
131
137 public String getConclusion() {
138 return conclusion;
139 }
140
146 public Score getScore() {
147 return score;
148 }
149
155 public String getConfiguration() {
156 return configuration;
157 }
158
164 public String getJustification() {
165 return justification;
166 }
167
174 public void setIgnoreResult(boolean ignore) {
175 ignoreResult = ignore;
176 }
177
183 public boolean ignoreResult() {
184 return ignoreResult;
185 }
186
187}

Copyright © 2011-2024 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.