com.mtp.pounder
Class PlaybackThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.mtp.pounder.PlaybackThread
All Implemented Interfaces:
Runnable

public class PlaybackThread
extends Thread

Responsible for playing back a RecordingRecord.

Author:
Matthew Pekar

Field Summary
protected  ClassLoader classLoader
           
protected  PounderModel model
           
protected  Player player
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PlaybackThread(PounderModel model, ClassLoader cl)
           
 
Method Summary
protected  Player buildPlayer(PounderModel model, ClassLoader cl)
           
 boolean isPaused()
           
 void run()
           
 void setPaused(boolean b)
           
 void setStopRequested(boolean b)
          Set whether thread should stop when possible.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Field Detail

model

protected PounderModel model

classLoader

protected ClassLoader classLoader

player

protected Player player
Constructor Detail

PlaybackThread

public PlaybackThread(PounderModel model,
                      ClassLoader cl)
Method Detail

buildPlayer

protected Player buildPlayer(PounderModel model,
                             ClassLoader cl)

setStopRequested

public void setStopRequested(boolean b)
Set whether thread should stop when possible.


setPaused

public void setPaused(boolean b)

isPaused

public boolean isPaused()

run

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


Copyright © 2002 Matthew Pekar. All Rights Reserved.