dbStat
Class SuperCluster

java.lang.Object
  extended bydbStat.SuperCluster

public class SuperCluster
extends java.lang.Object

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

theKluster

private static SuperCluster theKluster
Singleton class, has a single instance of self


clusterList

private java.util.ArrayList clusterList
ArrayList of clusters

Constructor Detail

SuperCluster

private SuperCluster()
Creates the instance of the class and initializes the cluster list to be empty

Method Detail

getInstance

public static SuperCluster getInstance()
singleton method to get the unique instance of the class

Returns:
A unique instance of the class

addCluster

public void addCluster(Cluster clust)
Method adds a new cluster to the SuperCluster

Parameters:
clust -

getAllClusters

public java.util.ArrayList getAllClusters()
Returns all clusters in the Super Cluster

Returns:
Array List of clusters in the Super Cluster

resetSuperCluster

public void resetSuperCluster()
Causes all the clusters to be deleted so the clustering can begin anew


getClusterCount

public int getClusterCount()
Gets the total no of clusters in the Super Cluster

Returns:
The count of no of clusters in the Super Cluster

getClusterByIndex

public Cluster getClusterByIndex(int index)
Gets a cluster of the given index from the Super Cluster

Parameters:
index - Identity of the cluster
Returns:
Cluster of the given index

toString

public java.lang.String toString()