jebl.evolution.trees
Class ConsensusTreeBuilder<T extends Tree>

java.lang.Object
  extended by jebl.evolution.trees.ConsensusTreeBuilder<T>
All Implemented Interfaces:
TreeBuilder<T>
Direct Known Subclasses:
GreedyRootedConsensusTreeBuilder, GreedyUnrootedConsensusTreeBuilder, MRCACConsensusTreeBuilder

public abstract class ConsensusTreeBuilder<T extends Tree>
extends Object
implements TreeBuilder<T>

Build a consensus tree for a set of trees. Base class just check for consistency Work in progress.

Author:
Joseph Heled

Nested Class Summary
static class ConsensusTreeBuilder.Method
          Supported consesus methods.
 
Field Summary
static String DEFAULT_SUPPORT_ATTRIBUTE_NAME
          Name of attribute specifing amount of support for branch
protected  int nExternalNodes
          Number of external nodes/taxa
protected  List<Taxon> taxons
          List of common taxa in all trees
 
Method Summary
 void addProgressListener(ProgressListener listener)
           
protected  boolean fireSetProgress(double fractionCompleted)
           
 String getSupportAttributeName()
           
 boolean isSupportAsPercent()
           
 void removeProgressListener(ProgressListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jebl.evolution.trees.TreeBuilder
build
 

Field Detail

DEFAULT_SUPPORT_ATTRIBUTE_NAME

public static final String DEFAULT_SUPPORT_ATTRIBUTE_NAME
Name of attribute specifing amount of support for branch

See Also:
Constant Field Values

nExternalNodes

protected final int nExternalNodes
Number of external nodes/taxa


taxons

protected List<Taxon> taxons
List of common taxa in all trees

Method Detail

getSupportAttributeName

public String getSupportAttributeName()

isSupportAsPercent

public boolean isSupportAsPercent()

addProgressListener

public void addProgressListener(ProgressListener listener)
Specified by:
addProgressListener in interface TreeBuilder<T extends Tree>

removeProgressListener

public void removeProgressListener(ProgressListener listener)
Specified by:
removeProgressListener in interface TreeBuilder<T extends Tree>

fireSetProgress

protected boolean fireSetProgress(double fractionCompleted)