public class DiscreteSequenceEnumerator extends Object implements RecyclableSequenceEnumerator
Sequence
s 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 Sequence
s for which the reverse
complement has not been returned beforecon
- the AlphabetContainer
for the discrete
Sequence
slength
- the length of the discrete Sequence
ssparse
- 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()
RecyclableSequenceEnumerator
reset
in interface RecyclableSequenceEnumerator