ritornello.core.performance
Class Score

java.lang.Object
  |
  +--ritornello.core.performance.Score
All Implemented Interfaces:
Collection, Runnable, Serializable

public class Score
extends java.lang.Object
implements Collection, Runnable, Serializable


Constructor Summary
Score()
           
 
Method Summary
 void addElement(java.lang.Object object)
           
 java.io.OutputStream exportTo()
           
 int getBpm()
          Retrieves the tempo value, in beats per minute.
 java.util.Iterator getElements()
           
 int getResolution()
          Retrieves the score resolution.
 void importFrom(java.io.InputStream in)
           
 void play()
           
 void removeAllElements()
           
 boolean removeElement(java.lang.Object object)
           
 void setBpm(int bpm)
          Sets the tempo value, in beats per minute.
 void setResolution(int resolution)
          Sets the score resolution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Score

public Score()
Method Detail

removeAllElements

public void removeAllElements()
Specified by:
removeAllElements in interface Collection

play

public void play()
          throws PlayingException
Specified by:
play in interface Runnable
Throws:
PlayingException

getBpm

public int getBpm()
Retrieves the tempo value, in beats per minute.

Returns:
int

setBpm

public void setBpm(int bpm)
Sets the tempo value, in beats per minute.

Parameters:
bpm - - The tempo value, in beats per minute.

removeElement

public boolean removeElement(java.lang.Object object)
Specified by:
removeElement in interface Collection
Parameters:
object -
Returns:
boolean

addElement

public void addElement(java.lang.Object object)
                throws IncompatibleElementException,
                       ValidationException
Specified by:
addElement in interface Collection
Parameters:
object -
Throws:
IncompatibleElementException
ValidationException

getElements

public java.util.Iterator getElements()
Specified by:
getElements in interface Collection
Returns:
java.util.Iterator

getResolution

public int getResolution()
Retrieves the score resolution.

Returns:
int

setResolution

public void setResolution(int resolution)
Sets the score resolution.

Parameters:
resolution - - The score resolution.

importFrom

public void importFrom(java.io.InputStream in)
Specified by:
importFrom in interface Serializable
Parameters:
in -

exportTo

public java.io.OutputStream exportTo()
Specified by:
exportTo in interface Serializable
Returns:
java.io.OutputStream