Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## de.jstacs.models.discrete.inhomogeneous
Class SequenceIterator

    java.lang.Object
      de.jstacs.models.discrete.inhomogeneous.SequenceIterator

    public class SequenceIterator

extends Object

This class is used to iterate over a discrete sequence.

Author:
  Jens Keilwagen

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

### SequenceIterator

    public SequenceIterator(int length)

  Creates a new SequenceIterator with maximal `length`.

  Parameters:
    `length` - the maximal length

Method Detail

### next

    public boolean next()

  Changes the internal sequence representation to the next sequence.

  Returns:
    `true` if the new sequence is correct, otherwise `false`

### reset

    public void reset()

  Resets the internal sequence representation. So the sequence iterator starts again.

### setBounds

    public void setBounds(int[] bounds)

  This method sets the bounds for each position. It does not copy the array and it doesnot proof bounds.length <= length. This has to be ensured by the user

  Parameters:
    `bounds` -

### skip

    public boolean skip(int firstPos)

  This method skips some position.

  Parameters:
    `firstPos` - the first position that is interesting.
  Returns:
    `true` if the internal sequence is from the scope.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD