Package cc.mallet.util.search
Class SearchState.NextStateIterator
- java.lang.Object
-
- cc.mallet.util.search.SearchState.NextStateIterator
-
- All Implemented Interfaces:
java.util.Iterator<SearchState>
- Enclosing interface:
- SearchState
public abstract static class SearchState.NextStateIterator extends java.lang.Object implements java.util.Iterator<SearchState>
Iterator over the states with transitions from a given state.
-
-
Constructor Summary
Constructors Constructor Description NextStateIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract double
cost()
The cost of the transition to the current state.abstract boolean
hasNext()
SearchState
next()
abstract SearchState
nextState()
Get the next reachable state.void
remove()
-
-
-
Method Detail
-
hasNext
public abstract boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<SearchState>
-
next
public SearchState next()
- Specified by:
next
in interfacejava.util.Iterator<SearchState>
-
nextState
public abstract SearchState nextState()
Get the next reachable state.- Returns:
- the state
-
cost
public abstract double cost()
The cost of the transition to the current state.- Returns:
- transition cost
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<SearchState>
-
-