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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchState.NextStateIterator
public SearchState.NextStateIterator()
hasNext
public abstract boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<SearchState>
next
public SearchState next()
- Specified by:
next
in interface java.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 interface java.util.Iterator<SearchState>