|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.sequence.RandomOffsetSequenceIterator<S,B>
S
- Type of sequencers that use these sequence iterators.B
- Type of button managers used by the sequencers that use these sequence iterators.public class RandomOffsetSequenceIterator<S extends Sequencer<S,B>,B extends ButtonManager<B>>
Iterator over a sequencer's sequence which progresses in the sequence with a randomly choosen direction at each step.
Nested Class Summary | |
---|---|
static class |
RandomOffsetSequenceIterator.RandomOffsetType
Type of generated random offsets. |
Constructor Summary | |
---|---|
RandomOffsetSequenceIterator()
Constructs a random offset sequence iterator with the default type of generated random offsets RandomOffsetType.UPWARD_BACKWARD_OR_NOTHING . |
|
RandomOffsetSequenceIterator(RandomOffsetSequenceIterator.RandomOffsetType randomOffsetType)
Constructs a random offset sequence iterator with the specified type of generated random offsets. |
Method Summary | |
---|---|
int |
getNextStep(S sequencer)
Returns the next step number for the specified sequencer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomOffsetSequenceIterator()
RandomOffsetType.UPWARD_BACKWARD_OR_NOTHING
.
public RandomOffsetSequenceIterator(RandomOffsetSequenceIterator.RandomOffsetType randomOffsetType)
randomOffsetType
- Type of generated random offsets.Method Detail |
---|
public int getNextStep(S sequencer)
getNextStep
in interface SequenceIterator<S extends Sequencer<S,B>,B extends ButtonManager<B>>
sequencer
- Sequencer which demands the next step.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |