Package com.kraken.api.simulation.tree
Class SimulationTreeNode
- java.lang.Object
-
- com.kraken.api.simulation.tree.SimulationTreeNode
-
public final class SimulationTreeNode extends java.lang.ObjectNode in a simulated outcome tree.
-
-
Constructor Summary
Constructors Constructor Description SimulationTreeNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(SimulationTreeNode child)Adds a child node to the current tree node.java.util.List<SimulationTreeNode>children()booleanisLeaf()
-
-
-
Method Detail
-
isLeaf
public boolean isLeaf()
- Returns:
- true when this node has no children.
-
children
public java.util.List<SimulationTreeNode> children()
- Returns:
- immutable child list.
-
addChild
public void addChild(SimulationTreeNode child)
Adds a child node to the current tree node.- Parameters:
child- child node.
-
-