cc.mallet.util.search
Class SearchState.NextStateIterator

java.lang.Object
  extended by 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
SearchState.NextStateIterator()
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchState.NextStateIterator

public SearchState.NextStateIterator()
Method Detail

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>