public final class CompositorRotation<T> extends CompositeIterator<T>
CompositorRotation
implements the rotation (interleaving) composition of iterators.iterators
Constructor and Description |
---|
CompositorRotation() |
Modifier and Type | Method and Description |
---|---|
protected ru.ispras.testbase.knowledge.iterator.Iterator<T> |
choose()
Selects an iterator whose value will be used at the current step.
|
ru.ispras.microtesk.test.sequence.compositor.CompositorBase<T> |
clone() |
boolean |
hasValue() |
void |
init() |
void |
initialize(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators) |
void |
next() |
protected void |
onInit()
The callback method called in the
init method. |
protected void |
onNext()
The callback method called in the
next method. |
void |
stop() |
T |
value() |
addIterator, addIterators, getIterators, removeIterator, removeIterators, setIterators, size
protected void onInit()
init
method.protected void onNext()
next
method.protected ru.ispras.testbase.knowledge.iterator.Iterator<T> choose()
public void initialize(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
initialize
in interface Compositor<T>
public void init()
init
in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
public boolean hasValue()
hasValue
in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
public T value()
value
in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
public void next()
next
in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
public void stop()
stop
in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
public ru.ispras.microtesk.test.sequence.compositor.CompositorBase<T> clone()
clone
in interface ru.ispras.testbase.knowledge.iterator.Iterator<T>
clone
in class java.lang.Object