Constructor and Description |
---|
SequenceIterator(int length)
Creates a new
SequenceIterator with maximal length . |
Modifier and Type | Method and Description |
---|---|
SequenceIterator |
clone() |
int |
discreteValAt(int pos)
This method returns the discrete value for a specific position.
|
int |
getNumberOfSequences()
|
boolean |
next()
Changes the internal sequence representation to the next sequence.
|
void |
reset()
Resets the internal sequence representation.
|
void |
setBounds(int[] bounds)
This method sets the bounds for each position.
|
boolean |
skip(int firstPos)
This method skips some position.
|
public SequenceIterator(int length)
SequenceIterator
with maximal length
.length
- the maximal length of the sequencepublic SequenceIterator clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public boolean next()
true
if the new sequence is correct, otherwise
false
public void reset()
SequenceIterator
starts again.public void setBounds(int[] bounds)
bounds.length
<= length
. This has to be ensured by the user.bounds
- the array with bounds for each positionpublic boolean skip(int firstPos)
firstPos
- the first position that is interestingtrue
if the internal sequence is from the scope,
false
otherwisepublic int discreteValAt(int pos)
pos
- the position