JTP API Documentation

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.


Constructor Summary
IteratorBasedReasoningStepIterator(Collection steps)
           
IteratorBasedReasoningStepIterator(Iterator it)
           
 
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
 

Constructor Detail

IteratorBasedReasoningStepIterator

public IteratorBasedReasoningStepIterator(Iterator it)

IteratorBasedReasoningStepIterator

public IteratorBasedReasoningStepIterator(Collection steps)
Method Detail

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.

JTP API Documentation