jtp.rs
Class IteratorBasedReasoningStepIterator
java.lang.Object
|
+--jtp.rs.IteratorBasedReasoningStepIterator
- All Implemented Interfaces:
- ReasoningStepIterator
- public class IteratorBasedReasoningStepIterator
- extends Object
- implements ReasoningStepIterator
A ReasoningStepIterator backed by a Java Iterator
.
Method Summary |
ReasoningStep |
next()
retrieves the next reasoning step in the sequence, or null if there are no more. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorBasedReasoningStepIterator
public IteratorBasedReasoningStepIterator(Iterator it)
IteratorBasedReasoningStepIterator
public IteratorBasedReasoningStepIterator(Collection steps)
next
public ReasoningStep next()
- Description copied from interface:
ReasoningStepIterator
- retrieves the next reasoning step in the sequence, or null if there are no more. Note that some
reasoners reuse reasoning steps, so you might want to make a clone if you want to keep one.
- Specified by:
next
in interface ReasoningStepIterator
- Returns:
- the next reasoning step in the sequence, or null if there are no more.