|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectdbStat.SuperCluster
Singleto class is the main collection of all clusters.
Each cluster is registered here and the toString method invokes a summary discription printed out about the current contents of each sub-cluster.
Because it is a singleton, this object exists from system inception and always contains the cluster heirarchy from the last clustering algorithm execution.
| Field Summary | |
private java.util.ArrayList |
clusterList
ArrayList of clusters |
private static SuperCluster |
theKluster
Singleton class, has a single instance of self |
| Constructor Summary | |
private |
SuperCluster()
Creates the instance of the class and initializes the cluster list to be empty |
| Method Summary | |
void |
addCluster(Cluster clust)
Method adds a new cluster to the SuperCluster |
java.util.ArrayList |
getAllClusters()
Returns all clusters in the Super Cluster |
Cluster |
getClusterByIndex(int index)
Gets a cluster of the given index from the Super Cluster |
int |
getClusterCount()
Gets the total no of clusters in the Super Cluster |
static SuperCluster |
getInstance()
singleton method to get the unique instance of the class |
void |
resetSuperCluster()
Causes all the clusters to be deleted so the clustering can begin anew |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static SuperCluster theKluster
private java.util.ArrayList clusterList
| Constructor Detail |
private SuperCluster()
| Method Detail |
public static SuperCluster getInstance()
public void addCluster(Cluster clust)
clust - public java.util.ArrayList getAllClusters()
public void resetSuperCluster()
public int getClusterCount()
public Cluster getClusterByIndex(int index)
index - Identity of the cluster
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||