19 package org.sleuthkit.datamodel;
24 import java.util.HashMap;
25 import java.util.ArrayList;
26 import java.util.List;
33 private final List<BlackboardArtifact> artifacts;
34 private final Map<Integer, String> attributeMap;
35 private final boolean isBackup;
36 private final boolean haveFsContent;
37 private final long fileSystemId;
38 private final boolean haveParentId;
39 private final long parentObjId;
42 artifacts =
new ArrayList<BlackboardArtifact>();
43 attributeMap =
new HashMap<Integer, String>();
46 haveFsContent =
false;
65 artifacts =
new ArrayList<BlackboardArtifact>();
67 isBackup = a_isBackup;
68 fileSystemId = a_fileSystemId;
70 attributeMap =
new HashMap<Integer, String>();
72 attributeMap.put(attr.getAttributeType().getTypeID(), attr.getValueString());
75 if (a_parent != null) {
76 parentObjId = a_parent.getId();
96 artifacts =
new ArrayList<BlackboardArtifact>();
98 isBackup = a_isBackup;
100 haveFsContent =
false;
101 if (a_parent != null) {
102 parentObjId = a_parent.getId();
106 haveParentId =
false;
108 attributeMap =
new HashMap<Integer, String>();
110 attributeMap.put(attr.getAttributeType().getTypeID(), attr.getValueString());
126 if (haveParentId && a_osInfo.haveParentId) {
128 return (parentObjId == a_osInfo.parentObjId);
133 if (haveFsContent && a_osInfo.haveFsContent) {
134 return ((a_osInfo.isBackup == isBackup) && (a_osInfo.fileSystemId == fileSystemId));
146 artifacts.addAll(a_osInfo.artifacts);
147 attributeMap.putAll(a_osInfo.attributeMap);
155 return haveFsContent;
174 if (attributeMap.containsKey(attrType.
getTypeID())) {
175 return attributeMap.get(attrType.
getTypeID());
OSInfo(BlackboardArtifact a_art, boolean a_isBackup, Content a_parent)
OSInfo(BlackboardArtifact a_art, boolean a_isBackup, long a_fileSystemId, Content a_parent)
boolean matches(OSInfo a_osInfo)
List< BlackboardArtifact > getArtifacts()
void combine(OSInfo a_osInfo)
String getProcessorArchitecture()
TSK_PROCESSOR_ARCHITECTURE
String getAttributeValue(ATTRIBUTE_TYPE attrType)