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

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

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

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

Since:
ICF 0.0
Version:
$Id$

Field Summary
private  java.util.Iterator ops
          the operators left to be chosen
 
Constructor Summary
OperatorSelectionChoiceIterator(java.util.Iterator ops)
          Construct an iterator over operator choices based upon the given operators.
 
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

ops

private java.util.Iterator ops
the operators left to be chosen
Since:
ICF 0.0
Constructor Detail

OperatorSelectionChoiceIterator

public OperatorSelectionChoiceIterator(java.util.Iterator ops)
Construct an iterator over operator choices based upon the given operators.
Parameters:
ops - the ops to consider using
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