sky.monome.sequence
Interface SequenceIterator<S extends Sequencer<S,B>,B extends ButtonManager<B>>

Type Parameters:
S - Type of sequencers that use these sequence iterators.
B - Type of button managers used by the sequencers that use these sequence iterators.
All Known Implementing Classes:
BackwardSequenceIterator, RandomOffsetSequenceIterator, RandomSequenceIterator, SwingSequenceIterator, TwiceUpwardSequenceIterator, UpwardAndBackwardSequenceIterator, UpwardSequenceIterator

public interface SequenceIterator<S extends Sequencer<S,B>,B extends ButtonManager<B>>

Iterator over a sequencer's sequence. All sequencers must have their own sequence iterator.

Author:
PJ Skyman

Method Summary
 int getNextStep(S sequencer)
          Returns the next step number for the specified sequencer.
 

Method Detail

getNextStep


int getNextStep(S sequencer)
Returns the next step number for the specified sequencer.

Parameters:
sequencer - Sequencer which demands the next step.
Returns:
The next step number for the specified sequencer.