de.jstacs.data
Class DiscreteSequenceEnumerator
java.lang.Object
de.jstacs.data.DiscreteSequenceEnumerator
- All Implemented Interfaces:
- Enumeration<Sequence>
public class DiscreteSequenceEnumerator
- extends Object
- implements Enumeration<Sequence>
This class enumerates over all sequences of a specific AlphabetContainer and
length.
- Author:
- Jens Keilwagen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscreteSequenceEnumerator
public DiscreteSequenceEnumerator(AlphabetContainer con,
int length,
boolean sparse)
- The constructor.
- Parameters:
con
- the AlphabetContainer for the discrete sequenceslength
- the length of the discrete sequencessparse
- if true
the enumerator delivers only sequences
for which the reverse complement has not been returned before
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface Enumeration<Sequence>
nextElement
public Sequence nextElement()
- Specified by:
nextElement
in interface Enumeration<Sequence>
reset
public void reset()
- This method enables the user to reuse this enumerator.