edu.umass.cs.mallet.base.util.search
Class SearchState.NextStateIterator

java.lang.Object
  extended byedu.umass.cs.mallet.base.util.search.SearchState.NextStateIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
SearchState

public abstract static class SearchState.NextStateIterator
extends java.lang.Object
implements java.util.Iterator

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()
           
 java.lang.Object 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

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

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