Sleuth Kit Java Bindings (JNI)  4.12.1
Java bindings for using The Sleuth Kit
AnalysisResult.java
Go to the documentation of this file.
1 /*
2  * Sleuth Kit Data Model
3  *
4  * Copyright 2020-2021 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  */
19 package org.sleuthkit.datamodel;
20 
28 public 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 
88  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) {
89  super(sleuthkitCase, artifactID, sourceObjId, artifactObjID, dataSourceObjID, artifactTypeID, artifactTypeName, displayName, reviewStatus, isNew);
90  this.score = score;
91  this.conclusion = (conclusion != null) ? conclusion : "";
92  this.configuration = (configuration != null) ? configuration : "";
93  this.justification = (justification != null) ? justification : "";
94  }
95 
101  public String getConclusion() {
102  return conclusion;
103  }
104 
110  public Score getScore() {
111  return score;
112  }
113 
119  public String getConfiguration() {
120  return configuration;
121  }
122 
128  public String getJustification() {
129  return justification;
130  }
131 
138  public void setIgnoreResult(boolean ignore) {
139  ignoreResult = ignore;
140  }
141 
147  public boolean ignoreResult() {
148  return ignoreResult;
149  }
150 
151 }

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