|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.MusicJob com.softsynth.jmsl.ParallelCollection
public class ParallelCollection
Parallel Collection for JMSL Collections can contain other Composable objects which allows a hierarchy to be created. A Parallel Collection launches all its children at the same time
Field Summary |
---|
Fields inherited from class com.softsynth.jmsl.MusicJob |
---|
repeatCount |
Constructor Summary | |
---|---|
ParallelCollection()
Conveniant constructors for quickly building a hierarchy. |
|
ParallelCollection(Composable child1)
Construct a parallel collection with specified child |
|
ParallelCollection(Composable child1,
Composable child2)
Construct a parallel collection with specified children |
|
ParallelCollection(Composable child1,
Composable child2,
Composable child3)
Construct a parallel collection with specified children |
|
ParallelCollection(Composable child1,
Composable child2,
Composable child3,
Composable child4)
Construct a parallel collection with specified children |
Method Summary | |
---|---|
Composable |
get(int i)
synonym for getChild(), return the i'th Composable in this Composable |
void |
halt()
Stop all children. |
double |
internalRepeat(double playTime)
Execute all children in parallel. |
static void |
main(java.lang.String[] args)
Stuff some jobs into a parallel collection and watch 'em go |
void |
print()
|
void |
printHierarchy(int level)
Very helpful printing function: print yourself and print all your children, who in turn print themselves and all THEIR children. |
void |
set(Composable child,
int i)
replace the Composable at element i with new Composable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParallelCollection()
public ParallelCollection(Composable child1)
public ParallelCollection(Composable child1, Composable child2)
public ParallelCollection(Composable child1, Composable child2, Composable child3)
public ParallelCollection(Composable child1, Composable child2, Composable child3, Composable child4)
Method Detail |
---|
public void set(Composable child, int i)
public Composable get(int i)
public double internalRepeat(double playTime) throws java.lang.InterruptedException
internalRepeat
in interface Composable
internalRepeat
in class MusicJob
java.lang.InterruptedException
- thrown if Thread.interrupt() called.public void halt()
halt
in interface Composable
halt
in class MusicJob
public void printHierarchy(int level)
printHierarchy
in interface Composable
printHierarchy
in class MusicJob
public void print()
print
in class MusicJob
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |