at.tuwien.ifs.somtoolbox.visualization.clustering
Class TreeBuilder

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.visualization.clustering.TreeBuilder
Direct Known Subclasses:
AbstractWardsLinkageTreeBuilder, CompleteLinkageTreeBuilder, NonHierarchicalTreeBuilder, SingleLinkageTreeBuilder

public abstract class TreeBuilder
extends Object

Superclass providing aborting and status monitoring functionality for the clustering algorithms.

Version:
$Id: TreeBuilder.java 3358 2010-02-11 14:35:07Z mayer $
Author:
Angela Roiger

Field Summary
protected  int level
           
protected  ProgressMonitor monitor
           
protected  int progress
           
protected  StdErrProgressWriter progressWriter
           
 
Constructor Summary
TreeBuilder()
           
 
Method Summary
protected  void allowAborting()
           
abstract  ClusteringTree createTree(GeneralUnitPNode[][] units)
           
protected  void finishMonitor()
           
abstract  String getClusteringAlgName()
           
protected  void incrementMonitor()
           
protected  void resetMonitor(int maximum)
           
 void setMonitor(ProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

level

protected int level

monitor

protected ProgressMonitor monitor

progressWriter

protected StdErrProgressWriter progressWriter

progress

protected int progress
Constructor Detail

TreeBuilder

public TreeBuilder()
Method Detail

createTree

public abstract ClusteringTree createTree(GeneralUnitPNode[][] units)
                                   throws ClusteringAbortedException
Throws:
ClusteringAbortedException

setMonitor

public void setMonitor(ProgressMonitor monitor)

resetMonitor

protected void resetMonitor(int maximum)

incrementMonitor

protected void incrementMonitor()

finishMonitor

protected void finishMonitor()

allowAborting

protected void allowAborting()
                      throws ClusteringAbortedException
Throws:
ClusteringAbortedException

getClusteringAlgName

public abstract String getClusteringAlgName()