public class DecisionTreeNode
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DecisionTreeNode.CONDITION |
Constructor and Description |
---|
DecisionTreeNode(java.lang.String attr,
java.lang.String condition,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(DecisionTreeNode node) |
static DecisionTreeNode |
createRootNode() |
boolean |
eval(java.lang.String attr,
java.util.Map<java.lang.String,java.lang.Object> map) |
DecisionTreeNode |
getParent() |
java.lang.String |
getResult() |
java.lang.String |
interpret(java.util.Map<java.lang.String,java.lang.Object> map) |
java.lang.String |
interpretChilds(java.util.Map<java.lang.String,java.lang.Object> map) |
void |
setResult(java.lang.String result) |
java.lang.String |
toString() |
java.lang.String |
toString(int currLvl) |
public DecisionTreeNode(java.lang.String attr, java.lang.String condition, java.lang.Object value)
public static DecisionTreeNode createRootNode()
public DecisionTreeNode getParent()
public void addChild(DecisionTreeNode node)
public void setResult(java.lang.String result)
public java.lang.String getResult()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int currLvl)
public java.lang.String interpret(java.util.Map<java.lang.String,java.lang.Object> map)
public java.lang.String interpretChilds(java.util.Map<java.lang.String,java.lang.Object> map)
public boolean eval(java.lang.String attr, java.util.Map<java.lang.String,java.lang.Object> map)