Package search

Interface SearchTreeNode<Self extends SearchTreeNode<Self,​State>,​State>

Type Parameters:
Self - The implementation type of these nodes. So a class implementing this interface would start something like

  public MyNode implements SearchTreeNode<MyNode, MyState> {
    ...
  } 
State - The type of the search state underlying these nodes.
All Known Subinterfaces:
SearchTreePathNode<This,​S>
All Known Implementing Classes:
BoardNode, Nodes.SimpleTreeCostNode, Nodes.SimpleTreeNode, Nodes.SimpleTreePathCostNode, Nodes.SimpleTreePathNode

public interface SearchTreeNode<Self extends SearchTreeNode<Self,​State>,​State>
Methods required of a search tree node.
  • Method Summary

    Modifier and Type Method Description
    Iterable<Self> expand()
    Expands the search node into successor nodes.
    State getState()
    Returns the search state underlying this node.
  • Method Details

    • getState

      State getState()
      Returns the search state underlying this node.
    • expand

      Iterable<Self> expand()
      Expands the search node into successor nodes.
      Returns:
      An Iterable instance of the successor nodes.