|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.models.discrete.inhomogeneous.SequenceIterator
public class SequenceIterator
This class is used to iterate over a discrete sequence.
Constructor Summary | |
---|---|
SequenceIterator(int length)
Creates a new SequenceIterator with maximal length . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SequenceIterator(int length)
length
.
length
- the maximal lengthMethod Detail |
---|
public boolean next()
true
if the new sequence is correct, otherwise false
public void reset()
public void setBounds(int[] bounds)
bounds
- public boolean skip(int firstPos)
firstPos
- the first position that is interesting.
true
if the internal sequence is from the scope.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |