core
Class Tree

java.lang.Object
  extended by core.Identifier
      extended by core.Tree

public class Tree
extends Identifier

Identification identax.core extension using dichotomical trees It generates the tree with the minimum number of tests requiered

Version:
1.0
Author:
Oscar Flores

Field Summary
 TreeNode root
          Root node of the tree
 
Fields inherited from class core.Identifier
cnf, con, mat, sum
 
Constructor Summary
Tree(Context con, Matrix mat, Configuration cnf)
          Creates a new Tree Identifier with no done tests
 
Method Summary
private  TreeNode recursiveTree(Context con)
          Recursive method to populate tree
 void run()
          Populates the tree nodes with test and taxa, updating every node.
 
Methods inherited from class core.Identifier
getBestTaxaIndex, getBestTestIndex, getBestTestIndex, getBestTestIndex, getBestTestIndex, getTaxaIndex, getTestIndex, getTestIndex, getTestIndex, getTestIndex, isSeparator, normTaxaProb
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

public TreeNode root
Root node of the tree

Constructor Detail

Tree

public Tree(Context con,
            Matrix mat,
            Configuration cnf)
Creates a new Tree Identifier with no done tests

Parameters:
con - Context of the execution
mat - Reference matrix
Method Detail

run

public void run()
         throws java.lang.Exception
Populates the tree nodes with test and taxa, updating every node. The final result is a tree with the best test secuence founded

Throws:
java.lang.Exception - if there is any error during the runtime

recursiveTree

private TreeNode recursiveTree(Context con)
                        throws java.lang.Exception
Recursive method to populate tree

Parameters:
con - node Context
Returns:
The current node and all his sons populated
Throws:
java.lang.Exception - if there is any error during the runtime