eu.semaine.components.mary
Class QueuingAudioPlayer

java.lang.Object
  extended by java.lang.Thread
      extended by eu.semaine.components.Component
          extended by eu.semaine.components.mary.QueuingAudioPlayer
All Implemented Interfaces:
SEMAINEMessageAvailableListener, java.lang.Runnable

public class QueuingAudioPlayer
extends Component

Audio player

Author:
Sathish Chandra Pammi

Nested Class Summary
static class QueuingAudioPlayer.AnimationState
           
static class QueuingAudioPlayer.PlayerFeatures
           
 class QueuingAudioPlayer.Playloop
          Playloop is playing the Animations that are put into the player queue.
 
Nested classes/interfaces inherited from class eu.semaine.components.Component
Component.State
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.lang.String COMMANDTYPE_INFO
           
static java.lang.String COMMANDTYPE_PLAY
           
 
Fields inherited from class eu.semaine.components.Component
inputWaiting, isInput, isOutput, log, meta, receivers, senders, state, waitingTime
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
QueuingAudioPlayer()
           
 
Method Summary
 void react(SEMAINEMessage m)
          Reactions to messages.
 void sendCallbackMessage(java.lang.String type, java.lang.String contentID)
           
 
Methods inherited from class eu.semaine.components.Component
act, customStartIO, exitRequested, messageAvailableFrom, requestExit, run
 
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
 

Field Detail

COMMANDTYPE_INFO

public static final java.lang.String COMMANDTYPE_INFO
See Also:
Constant Field Values

COMMANDTYPE_PLAY

public static final java.lang.String COMMANDTYPE_PLAY
See Also:
Constant Field Values
Constructor Detail

QueuingAudioPlayer

public QueuingAudioPlayer()
                   throws javax.jms.JMSException
Parameters:
componentName -
Throws:
javax.jms.JMSException
Method Detail

react

public void react(SEMAINEMessage m)
           throws javax.jms.JMSException
Description copied from class: Component
Reactions to messages. This base implementation does nothing; subclasses should implement suitable behaviour here.

Overrides:
react in class Component
Throws:
javax.jms.JMSException - if communication with the JMS server goes wrong.

sendCallbackMessage

public void sendCallbackMessage(java.lang.String type,
                                java.lang.String contentID)
                         throws javax.jms.JMSException
Throws:
javax.jms.JMSException