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.Iterator
This 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 protected
NextNodeIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
cost()
The cost associated to the transition from the previous state to this state.protected SearchState.NextStateIterator
getStateIter()
boolean
hasNext()
java.lang.Object
next()
SearchNode
nextNode()
The search tree node for the next state reached from the current state.void
remove()
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator
-
next
public java.lang.Object next()
- Specified by:
next
in 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:
remove
in interfacejava.util.Iterator
-
getStateIter
protected SearchState.NextStateIterator getStateIter()
-
-