edu.cmu.cs.coral.icf.plan_based.planners.pip
Class OpApplicationChoiceIterator

java.lang.Object
  |
  +--edu.cmu.cs.coral.icf.plan_based.planners.pip.OpApplicationChoiceIterator

public class OpApplicationChoiceIterator
extends java.lang.Object
implements java.util.Iterator

Represents an iterator over operator application choices which are generated on the fly.

Since:
ICF 0.0
Version:
$Id$

Field Summary
private  java.util.Iterator nodes
          the list of plan nodes that can be expanded
 
Constructor Summary
OpApplicationChoiceIterator(java.util.Iterator nodes)
          Generates a new iterator over the possible operator applications
 
Method Summary
 boolean hasNext()
          Checks if there is a next element from this iterator.
 java.lang.Object next()
          Gets the next element from this iterator.
 void remove()
          Removes this element from the iterator's backing store.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

nodes

private java.util.Iterator nodes
the list of plan nodes that can be expanded
Since:
ICF 0.0
Constructor Detail

OpApplicationChoiceIterator

public OpApplicationChoiceIterator(java.util.Iterator nodes)
Generates a new iterator over the possible operator applications
Parameters:
nodes - the nodes to consider applying operators from
Since:
ICF 0.0
Method Detail

hasNext

public boolean hasNext()
Checks if there is a next element from this iterator.
Specified by:
hasNext in interface java.util.Iterator
Returns:
true if and only if this iterator has another element
Since:
ICF 0.0

next

public java.lang.Object next()
Gets the next element from this iterator.
Specified by:
next in interface java.util.Iterator
Returns:
the next element of this iterator
Since:
ICF 0.0

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Removes this element from the iterator's backing store.
Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException - always
Since:
ICF 0.0