|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SequenceGenerator
Define the interface for SequenceGenerator objects for JMSL. Objects implementing this interface can be used to generate sequences for algorithmic composition.
SequencerGeneratorAdapter
Method Summary | |
---|---|
int |
getNext()
|
int |
getSeed()
|
int |
next()
Return next value in sequence, then generate a new one. |
void |
randomize()
Set seed from system time. |
void |
reset()
Reset sequence generator so that it will restart at seed value. |
void |
setNext(int next)
Set next value in sequence. |
void |
setSeed(int seed)
Set pseudo-random generator seed for repeatable sequences. |
Method Detail |
---|
int next()
int getNext()
void setNext(int next)
void setSeed(int seed)
int getSeed()
void randomize()
void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |