JTP API Documentation

jtp.rs
Class ArrayReasoningStepIterator

java.lang.Object
  |
  +--jtp.rs.ArrayReasoningStepIterator
All Implemented Interfaces:
ReasoningStepIterator

public class ArrayReasoningStepIterator
extends Object
implements ReasoningStepIterator

An iterator over the ReasoningSteps in an array.


Field Summary
static ReasoningStepIterator empty
           
 
Constructor Summary
ArrayReasoningStepIterator()
           
ArrayReasoningStepIterator(Collection pss)
           
ArrayReasoningStepIterator(ReasoningStep ps0)
           
ArrayReasoningStepIterator(ReasoningStep[] ps)
           
ArrayReasoningStepIterator(ReasoningStep ps0, ReasoningStep ps1)
           
ArrayReasoningStepIterator(ReasoningStep ps0, ReasoningStep ps1, ReasoningStep ps2)
           
 
Method Summary
 boolean hasNext()
           
 ReasoningStep next()
          retrieves the next reasoning step in the sequence, or null if there are no more.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

empty

public static final ReasoningStepIterator empty
Constructor Detail

ArrayReasoningStepIterator

public ArrayReasoningStepIterator()

ArrayReasoningStepIterator

public ArrayReasoningStepIterator(ReasoningStep ps0)

ArrayReasoningStepIterator

public ArrayReasoningStepIterator(ReasoningStep ps0,
                                  ReasoningStep ps1)

ArrayReasoningStepIterator

public ArrayReasoningStepIterator(ReasoningStep ps0,
                                  ReasoningStep ps1,
                                  ReasoningStep ps2)

ArrayReasoningStepIterator

public ArrayReasoningStepIterator(Collection pss)

ArrayReasoningStepIterator

public ArrayReasoningStepIterator(ReasoningStep[] ps)
Method Detail

hasNext

public boolean hasNext()
Returns:

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:

toString

public String toString()
Overrides:
toString in class Object

JTP API Documentation