Module net.automatalib.util
Package net.automatalib.util.ts.iterator
Class DefinedInputsIterator<S,I>
- java.lang.Object
-
- net.automatalib.common.util.collection.AbstractSimplifiedIterator<I>
-
- net.automatalib.util.ts.iterator.DefinedInputsIterator<S,I>
-
- All Implemented Interfaces:
Iterator<I>
public final class DefinedInputsIterator<S,I> extends AbstractSimplifiedIterator<I>
-
-
Field Summary
-
Fields inherited from class net.automatalib.common.util.collection.AbstractSimplifiedIterator
nextValue
-
-
Constructor Summary
Constructors Constructor Description DefinedInputsIterator(TransitionSystem<S,I,?> ts, S state, Iterator<? extends I> inputsIt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
calculateNext()
The method to calculate the next element.-
Methods inherited from class net.automatalib.common.util.collection.AbstractSimplifiedIterator
hasNext, next
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
calculateNext
protected boolean calculateNext()
Description copied from class:AbstractSimplifiedIterator
The method to calculate the next element. This method must set theAbstractSimplifiedIterator.nextValue
reference to indicate the next object and returntrue
to signal that the next element is valid.- Specified by:
calculateNext
in classAbstractSimplifiedIterator<I>
- Returns:
true
if the next element is valid,false
if no more elements can be computed
-
-