Class DepthFirstNode<P extends IGamePosition<P>>

java.lang.Object
gametree.GameTreeNode<DepthFirstNode<P>, P>
gametree.DepthFirstNode<P>
Type Parameters:
P - The game position to store in this DepthFirstNode.
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DepthFirstNode.RootDFNode

public class DepthFirstNode<P extends IGamePosition<P>> extends GameTreeNode<DepthFirstNode<P>, P>
GameTreeNode implementation that does not store children nodes, but does store the depth of bounds and the bounds themselves. Updates to the bounds are recorded, but the structure of the tree is not. This is particularly useful for depth-first algorithms. As minimal information is stored, yet most GameTreeNode functionality is supported as usual. Note that savedChildren() will always return Optional.empty() and GameTreeNode.children(MetricKeeper...) will always perform a node expansion.
See Also: