dtreepackage
Class BinTree

java.lang.Object
  extended bydtreepackage.BinTree

public class BinTree
extends java.lang.Object


Field Summary
 BinTree noBranch
           
 int nodeID
           
 java.lang.String questOrAns
           
 BinTree yesBranch
           
 
Constructor Summary
BinTree(int newNodeID, java.lang.String newQuestAns)
           
 
Method Summary
 int getNodeId()
          This method returns the ID of the node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeID

public int nodeID

questOrAns

public java.lang.String questOrAns

yesBranch

public BinTree yesBranch

noBranch

public BinTree noBranch
Constructor Detail

BinTree

public BinTree(int newNodeID,
               java.lang.String newQuestAns)
Method Detail

getNodeId

public int getNodeId()
This method returns the ID of the node

Returns:
returns an int which is the id of the node
See Also:
DecisionTree