Class 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.
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • NextStateIterator

        public NextStateIterator()
    • Method Detail

      • hasNext

        public abstract boolean hasNext()
        Specified by:
        hasNext 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>