info.aduna.clustermap
Class DefaultClusterModel

java.lang.Object
  extended by info.aduna.clustermap.DefaultClusterModel
All Implemented Interfaces:
ClusterModel

public class DefaultClusterModel
extends Object
implements ClusterModel

DefaultClusterModel provides a complete implementation of ClusterModel. It can be created with a given set of Classifications and Clusters. Alternatively, it can be created with only a set of Classifications, so that it calculates the set of Clusters by itself.


Constructor Summary
DefaultClusterModel()
          Creates a new, empty DefaultClusterModel.
DefaultClusterModel(Collection<? extends Classification> classifications)
          Creates a new DefaultClusterModel based on the specified set of Classifications.
DefaultClusterModel(Collection<? extends Classification> classifications, Collection<? extends Cluster> clusters)
          Creates a new DefaultClusterModel that contains specified set of Clusters, based on the specified set of Classifications.
 
Method Summary
 Collection<? extends Classification> getClassifications()
          Returns the Classifications on which this ClusterModel was based.
 Collection<? extends Cluster> getClusters()
          Returns the Clusters contained in this ClusterModel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultClusterModel

public DefaultClusterModel()
Creates a new, empty DefaultClusterModel.


DefaultClusterModel

public DefaultClusterModel(Collection<? extends Classification> classifications)
Creates a new DefaultClusterModel based on the specified set of Classifications. This automatically calculates the set of Clusters.


DefaultClusterModel

public DefaultClusterModel(Collection<? extends Classification> classifications,
                           Collection<? extends Cluster> clusters)
Creates a new DefaultClusterModel that contains specified set of Clusters, based on the specified set of Classifications. Beware that no check is done whether the set of Clusters is consistent with the set of Classifications.

Method Detail

getClassifications

public Collection<? extends Classification> getClassifications()
Returns the Classifications on which this ClusterModel was based.

Specified by:
getClassifications in interface ClusterModel

getClusters

public Collection<? extends Cluster> getClusters()
Returns the Clusters contained in this ClusterModel.

Specified by:
getClusters in interface ClusterModel


Copyright © 1997-2008 Aduna. All Rights Reserved.