|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softsynth.jmsl.MusicJob
com.softsynth.jmsl.ParallelCollection
com.softsynth.jmsl.QueueCollection
public class QueueCollection
A QueueCollection launches each of its Composable children in sequence. As each child is played, it is removed from the queue. The number of children removed from the queue is the value specified using setRepeats(). More children can be added to the queue while it is running. The last Composable in the queue will be played repeatedly when the queue becomes empty. To make the QueueCollection stop when the queue becomes empty, call add(null) after the last child is added.
Field Summary |
---|
Fields inherited from class com.softsynth.jmsl.MusicJob |
---|
repeatCount |
Constructor Summary | |
---|---|
QueueCollection()
Simple constructor. |
|
QueueCollection(Composable child1)
Conveniant constructor which automatically adds one Composable child to the queue hierarchy. |
|
QueueCollection(Composable child1,
Composable child2)
Conveniant constructor which automatically adds two Composable children to the queue hierarchy. |
|
QueueCollection(Composable child1,
Composable child2,
Composable child3)
Conveniant constructor which automatically adds three Composable children to the queue hierarchy. |
|
QueueCollection(Composable child1,
Composable child2,
Composable child3,
Composable child4)
Conveniant constructor which automatically adds four Composable children to the queue hierarchy. |
Method Summary | |
---|---|
double |
internalRepeat(double playTime)
Play next child in sequence. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class com.softsynth.jmsl.ParallelCollection |
---|
get, halt, print, printHierarchy, set |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueueCollection()
public QueueCollection(Composable child1)
public QueueCollection(Composable child1, Composable child2)
public QueueCollection(Composable child1, Composable child2, Composable child3)
public QueueCollection(Composable child1, Composable child2, Composable child3, Composable child4)
Method Detail |
---|
public double internalRepeat(double playTime) throws java.lang.InterruptedException
internalRepeat
in interface Composable
internalRepeat
in class ParallelCollection
java.lang.InterruptedException
- if the thread running this Composable is interrupted.public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |