com.softsynth.jmsl.score
Class ScoreCollectionBehavior

java.lang.Object
  extended by com.softsynth.jmsl.score.ScoreCollectionBehavior
All Implemented Interfaces:
Behavior

public class ScoreCollectionBehavior
extends java.lang.Object
implements Behavior

Implements behavior of common music rules such as repeats and repeat counts of measures.

Author:
Nick Didkovsky, copyright 2000 Nick Didkovsky, all rights reserved

Constructor Summary
ScoreCollectionBehavior()
           
 
Method Summary
 Composable choose(SequentialCollection col)
          Choose a child to launch depending on repeat bars, repeat counts, etc of measure
 int getCurrentMeasureNumber()
           
 void setLoop(boolean flag)
           
 void setStartEndLoop(int startMeasureNum, int endMeasure, boolean loop)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoreCollectionBehavior

public ScoreCollectionBehavior()
Method Detail

setStartEndLoop

public void setStartEndLoop(int startMeasureNum,
                            int endMeasure,
                            boolean loop)

setLoop

public void setLoop(boolean flag)

choose

public Composable choose(SequentialCollection col)
Choose a child to launch depending on repeat bars, repeat counts, etc of measure

Specified by:
choose in interface Behavior
Returns:
next Measure child to launch.

getCurrentMeasureNumber

public int getCurrentMeasureNumber()
Returns:
current measure number