Class CompositeIterator<T>
- java.lang.Object
-
- ru.ispras.microtesk.test.sequence.internal.CompositeIterator<T>
-
- Direct Known Subclasses:
CombinatorDiagonal
,CombinatorProduct
,CombinatorRandom
,CompositorCatenation
,CompositorNesting
,CompositorOverlapping
,CompositorRandom
,CompositorRotation
public abstract class CompositeIterator<T> extends java.lang.Object
This class is a basic class for composite iterators (e.g., combinators or compositors).
-
-
Constructor Summary
Constructors Constructor Description CompositeIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIterator(ru.ispras.testbase.knowledge.iterator.Iterator<T> iterator)
Adds the sub-iterator into the list.void
addIterators(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
Adds the sub-iterators into the list.java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>>
getIterators()
Returns the list of sub-iterators.void
removeIterator(int i)
Removes the i-th sub-iterator from the list.void
removeIterators()
Removes all sub-iterators from the list.void
setIterators(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
Sets the sub-iterators.int
size()
Returns the number of iterators in the list.
-
-
-
Field Detail
-
iterators
protected java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators
The sub-iterators (i.e., iterators to be combined or composed).
-
-
Method Detail
-
getIterators
public java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> getIterators()
Returns the list of sub-iterators.- Returns:
- the list of sub-iterators.
-
addIterator
public void addIterator(ru.ispras.testbase.knowledge.iterator.Iterator<T> iterator)
Adds the sub-iterator into the list.- Parameters:
iterator
- the sub-iterator to be added to the list.
-
addIterators
public void addIterators(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
Adds the sub-iterators into the list.- Parameters:
iterators
- the sub-iterators to be added to the list.
-
setIterators
public void setIterators(java.util.List<ru.ispras.testbase.knowledge.iterator.Iterator<T>> iterators)
Sets the sub-iterators.- Parameters:
iterators
- the sub-iterators to be set.
-
removeIterator
public void removeIterator(int i)
Removes the i-th sub-iterator from the list.- Parameters:
i
- the index of the sub-iterator to be removed from the list.
-
removeIterators
public void removeIterators()
Removes all sub-iterators from the list.
-
size
public int size()
Returns the number of iterators in the list.- Returns:
- the size of the sub-iterator list.
-
-