com.jamesbryangraves.bob.music
Class Composer

java.lang.Object
  extended by java.lang.Thread
      extended by com.jamesbryangraves.bob.music.Composer
All Implemented Interfaces:
java.lang.Runnable

public class Composer
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Composer()
           
 
Method Summary
 void close()
           
 void compose()
           
 java.util.List<MusicEventListener> getListeners()
           
 MusicContext getMusicContext()
           
 java.util.List<MusicEventGenerator> getMusicGenerators()
           
 long getTick()
           
 boolean isOpen()
           
 void notifyMusicEventListeners(int index, MusicEvent event)
           
 void open()
           
 void run()
           
 void setListeners(java.util.List<MusicEventListener> listeners)
           
 void setMusicContext(MusicContext musicContext)
           
 void setMusicGenerators(java.util.List<MusicEventGenerator> musicGenerators)
           
 void setTick(long tick)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Composer

public Composer()
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

compose

public void compose()
             throws java.lang.Exception
Throws:
java.lang.Exception

notifyMusicEventListeners

public void notifyMusicEventListeners(int index,
                                      MusicEvent event)

getMusicContext

public MusicContext getMusicContext()

setMusicContext

public void setMusicContext(MusicContext musicContext)

getMusicGenerators

public java.util.List<MusicEventGenerator> getMusicGenerators()

setMusicGenerators

public void setMusicGenerators(java.util.List<MusicEventGenerator> musicGenerators)

getTick

public long getTick()

setTick

public void setTick(long tick)

getListeners

public java.util.List<MusicEventListener> getListeners()

setListeners

public void setListeners(java.util.List<MusicEventListener> listeners)

isOpen

public boolean isOpen()

open

public void open()

close

public void close()


Copyright © 2007. All Rights Reserved.