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.
empty
public static final ReasoningStepIterator empty
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)
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