jhpro.dtree
Class BinTree
- java.lang.Object
-
- jhpro.dtree.BinTree
-
- All Implemented Interfaces:
- java.io.Serializable
public class BinTree extends java.lang.Object implements java.io.SerializableRepresents a single node with decision (or answer).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description BinTreenoBranchintnodeIDjava.lang.StringquestOrAnsBinTreeyesBranch
-
Constructor Summary
Constructors Constructor and Description BinTree(int newNodeID, java.lang.String newQuestAns)Represents a single node with decision (or answer).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetNodeAnswer()Get the answer.java.lang.StringtoString()Print to the string.
-
-
-
Field Detail
-
nodeID
public int nodeID
-
questOrAns
public java.lang.String questOrAns
-
yesBranch
public BinTree yesBranch
-
noBranch
public BinTree noBranch
-
-
DMelt 3.0 © DataMelt by jWork.ORG