org.metasyntactic.ai.learning
Class DecisionTree.Node

java.lang.Object
  |
  +--org.metasyntactic.ai.learning.DecisionTree.Node
Enclosing class:
DecisionTree

public static class DecisionTree.Node
extends java.lang.Object


Field Summary
protected  java.util.Map choiceToNode
           
 
Constructor Summary
DecisionTree.Node(boolean decision)
           
DecisionTree.Node(java.lang.Object attribute)
           
 
Method Summary
 void addChild(java.lang.Object choice, DecisionTree.Node n)
           
 void addChild(java.lang.Object choice, DecisionTree tree)
           
 java.lang.Object getAttribute()
           
 DecisionTree.Node getChild(java.lang.Object choice)
           
 boolean getDecision()
           
 boolean isDecision()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

choiceToNode

protected java.util.Map choiceToNode
Constructor Detail

DecisionTree.Node

public DecisionTree.Node(boolean decision)

DecisionTree.Node

public DecisionTree.Node(java.lang.Object attribute)
Method Detail

getAttribute

public java.lang.Object getAttribute()

addChild

public void addChild(java.lang.Object choice,
                     DecisionTree.Node n)

addChild

public void addChild(java.lang.Object choice,
                     DecisionTree tree)

getChild

public DecisionTree.Node getChild(java.lang.Object choice)

isDecision

public boolean isDecision()

getDecision

public boolean getDecision()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object