public class DiscreteSequenceEnumerator extends Object implements RecyclableSequenceEnumerator
Sequences of a specific
AlphabetContainer and length.| Constructor and Description |
|---|
DiscreteSequenceEnumerator(AlphabetContainer con,
int length,
boolean sparse)
Creates a new
DiscreteSequenceEnumerator from a given
AlphabetContainer and a length. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements() |
Sequence<int[]> |
nextElement() |
void |
reset()
This method enables the user to reuse this enumerator.
|
public DiscreteSequenceEnumerator(AlphabetContainer con, int length, boolean sparse)
DiscreteSequenceEnumerator from a given
AlphabetContainer and a length. sparse determines,
if the enumerator delivers only Sequences for which the reverse
complement has not been returned beforecon - the AlphabetContainer for the discrete
Sequenceslength - the length of the discrete Sequencessparse - indicates if the enumerator delivers only sequences for which
the reverse complement has not been returned beforepublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<Sequence>public Sequence<int[]> nextElement()
nextElement in interface Enumeration<Sequence>public void reset()
RecyclableSequenceEnumeratorreset in interface RecyclableSequenceEnumerator