eu.semaine.components.dialogue.actionproposers
Class BackchannelActionProposer

java.lang.Object
  extended by java.lang.Thread
      extended by eu.semaine.components.Component
          extended by eu.semaine.components.dialogue.actionproposers.BackchannelActionProposer
All Implemented Interfaces:
SEMAINEMessageAvailableListener, java.lang.Runnable

public class BackchannelActionProposer
extends Component


Nested Class Summary
 
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
 
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
BackchannelActionProposer()
           
 
Method Summary
 void act()
          Proactive actions.
 void react(SEMAINEMessage m)
          Reactions to messages.
 void sendBackchannel()
           
 void setAgentSpeakingState(StateInfo dialogInfo)
          Reads the received Message and tries to filter out the detected user speaking state.
 void setCharacter(StateInfo agentInfo)
          Reads the received Message and tries to filter out a change of character
 void setUserSpeakingState(StateInfo userInfo)
          Reads the received Message and tries to filter out the detected user speaking state.
 
Methods inherited from class eu.semaine.components.Component
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
 

Constructor Detail

BackchannelActionProposer

public BackchannelActionProposer()
                          throws javax.jms.JMSException
Throws:
javax.jms.JMSException
Method Detail

act

public void act()
         throws javax.jms.JMSException
Description copied from class: Component
Proactive actions. This method is called every Component.waitingTime milliseconds if no messages arrive, and after every message processing. This base implementation does nothing; subclasses should implement suitable behaviour here.

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

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.

setAgentSpeakingState

public void setAgentSpeakingState(StateInfo dialogInfo)
Reads the received Message and tries to filter out the detected user speaking state.

Parameters:
m - - the received message

setUserSpeakingState

public void setUserSpeakingState(StateInfo userInfo)
Reads the received Message and tries to filter out the detected user speaking state.

Parameters:
m - - the received message

setCharacter

public void setCharacter(StateInfo agentInfo)
Reads the received Message and tries to filter out a change of character

Parameters:
am - - the received message

sendBackchannel

public void sendBackchannel()
                     throws javax.jms.JMSException
Throws:
javax.jms.JMSException