abc.notation
Class MultiPartsDefinition

java.lang.Object
  extended byabc.notation.RepeatedPartAbstract
      extended byabc.notation.MultiPartsDefinition

public class MultiPartsDefinition
extends RepeatedPartAbstract

This class describes the way a multipart score is defined.


Constructor Summary
MultiPartsDefinition()
          Creates a new multi part definition.
 
Method Summary
 void addPart(RepeatedPartAbstract p)
          Adds a new part to this multi part.
 java.util.Vector getPartsAsRepeatedOnceVector()
           
 Part[] toPartsArray()
          Returns this multipart as an array of singles parts.
 
Methods inherited from class abc.notation.RepeatedPartAbstract
getNumberOfRepeats, setNumberOfRepeats
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPartsDefinition

public MultiPartsDefinition()
Creates a new multi part definition.

Method Detail

addPart

public void addPart(RepeatedPartAbstract p)
Adds a new part to this multi part.

Parameters:
p - The part that has to be added to the multi part. This part can be a simple Part or another MultiPart (composite definition).

toPartsArray

public Part[] toPartsArray()
Returns this multipart as an array of singles parts. The playing of the multi part would sound the same as the playing of the array of parts.

Specified by:
toPartsArray in class RepeatedPartAbstract
Returns:
An array of singles parts that would sound the same as the playing of this multipart.

getPartsAsRepeatedOnceVector

public java.util.Vector getPartsAsRepeatedOnceVector()