done.inpro.system.completion
Class TurnCompleter.CompletionPlayer.InstallmentPlayer

java.lang.Object
  extended by java.lang.Thread
      extended by done.inpro.system.completion.TurnCompleter.CompletionPlayer.InstallmentPlayer
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
TurnCompleter.CompletionPlayer

 class TurnCompleter.CompletionPlayer.InstallmentPlayer
extends java.lang.Thread

outputs a given system installment after the given holding time has passed


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  boolean aborted
           
(package private)  double holdingTime
          in seconds
(package private)  SysInstallmentIU output
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TurnCompleter.CompletionPlayer.InstallmentPlayer(double holdingTime, SysInstallmentIU output)
           
 
Method Summary
 void abort()
          if this is called before run() completes, then no output will be sent to the speakers
 void run()
          synthesize output and initiate playback after holdingTime has passed
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

output

SysInstallmentIU output

holdingTime

double holdingTime
in seconds


aborted

boolean aborted
Constructor Detail

TurnCompleter.CompletionPlayer.InstallmentPlayer

public TurnCompleter.CompletionPlayer.InstallmentPlayer(double holdingTime,
                                                        SysInstallmentIU output)
Method Detail

abort

public void abort()
if this is called before run() completes, then no output will be sent to the speakers


run

public void run()
synthesize output and initiate playback after holdingTime has passed

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread