
M - Model typepublic class Clustering<M extends Model> extends BasicResult
| Modifier and Type | Field and Description | 
|---|---|
| private List<Cluster<M>> | toplevelclustersKeep a list of top level clusters. | 
| Constructor and Description | 
|---|
| Clustering(String name,
          String shortname)Constructor for an empty clustering | 
| Clustering(String name,
          String shortname,
          List<Cluster<M>> toplevelclusters)Constructor with a list of top level clusters | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addCluster(Cluster<M> n)Add a cluster to the clustering. | 
| List<Cluster<M>> | getAllClusters()Collect all clusters (recursively) into a List. | 
| List<Cluster<M>> | getToplevelClusters()Return top level clusters | 
getLongName, getShortNameaddChildResult, getHierarchy, setHierarchypublic Clustering(String name, String shortname, List<Cluster<M>> toplevelclusters)
name - The long name (for pretty printing)shortname - the short name (for filenames etc.)toplevelclusters - Top level clusters