public class FHCluster
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
distanceThreshold |
private java.util.ArrayList<FHFile> |
filesToProcess |
private java.util.ArrayList<FHFile> |
filesWithNoCoords |
private java.util.ArrayList<java.util.ArrayList<FHFile>> |
groups |
private static org.slf4j.Logger |
log |
Constructor and Description |
---|
FHCluster(java.util.ArrayList<FHFile> files)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<FHFileGroup> |
getGroups()
Get the groups calculated by this class.
|
void |
process()
Run the clustering process.
|
private java.lang.Boolean |
recurseRefineGroups(int depth)
Check through the groups to see if any are closer than the threshold.
|
private java.lang.Boolean |
searchGroupsForMatch(FHFile file)
Search through the existing groups to see if the specified file is close enough to group, otherwise place it in it's own group.
|
void |
setFileList(java.util.ArrayList<FHFile> files)
Set the files to process.
|
private static final org.slf4j.Logger log
private java.util.ArrayList<FHFile> filesToProcess
private java.util.ArrayList<java.util.ArrayList<FHFile>> groups
private java.util.ArrayList<FHFile> filesWithNoCoords
private java.lang.Integer distanceThreshold
public FHCluster(java.util.ArrayList<FHFile> files)
files
- public void setFileList(java.util.ArrayList<FHFile> files)
files
- public void process()
private java.lang.Boolean recurseRefineGroups(int depth)
depth
- private java.lang.Boolean searchGroupsForMatch(FHFile file)
file
- public java.util.ArrayList<FHFileGroup> getGroups()