Package cc.mallet.util.search
Class SearchNode.NextNodeIterator
- java.lang.Object
-
- cc.mallet.util.search.SearchNode.NextNodeIterator
-
- All Implemented Interfaces:
java.util.Iterator
- Direct Known Subclasses:
AStarNode.NextNodeIterator
- Enclosing class:
- SearchNode
public class SearchNode.NextNodeIterator extends java.lang.Object implements java.util.IteratorThis iterator generates search nodes that refer to the states reachable from the state pertaining to a this search node.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNextNodeIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecost()The cost associated to the transition from the previous state to this state.protected SearchState.NextStateIteratorgetStateIter()booleanhasNext()java.lang.Objectnext()SearchNodenextNode()The search tree node for the next state reached from the current state.voidremove()
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator
-
next
public java.lang.Object next()
- Specified by:
nextin interfacejava.util.Iterator
-
nextNode
public SearchNode nextNode()
The search tree node for the next state reached from the current state.- Returns:
- a new search tree node
-
cost
public double cost()
The cost associated to the transition from the previous state to this state.- Returns:
- the cost
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator
-
getStateIter
protected SearchState.NextStateIterator getStateIter()
-
-