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 booleancalculateNext()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:AbstractSimplifiedIteratorThe method to calculate the next element. This method must set theAbstractSimplifiedIterator.nextValuereference to indicate the next object and returntrueto signal that the next element is valid.- Specified by:
calculateNextin classAbstractSimplifiedIterator<I>- Returns:
trueif the next element is valid,falseif no more elements can be computed
-
-