eu.semaine.components.dialogue.interpreters
Class NonVerbalInterpreter

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

public class NonVerbalInterpreter
extends Component

The NonVerbalInterpreter receives Non-Verbal data from the NonVerbal Fusion component, and if the confidence is higher than the specified threshold it will put it in the userstate. Input EmmaReceiver('semaine.data.state.user.emma.nonverbal') Output StateSender('semaine.data.state.user.behaviour')

Author:
Mark ter Maat

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
NonVerbalInterpreter()
          Constructor of NonVerBalInterpreter
 
Method Summary
 void checkNewAUList(java.util.HashSet<java.lang.Integer> auList)
           
 void react(SEMAINEMessage m)
          Checks if the received message is an EmmaMessage, and based on the content it will check if the confidence is high enough to put the received data in the UserState.
 void sendUserStateChange(java.lang.String[] shortNames, java.lang.String[] values)
          Sends the given variable names and values to the UserState.
 void sendUserStateChange(java.lang.String shortName, java.lang.String value)
          Sends the given variable name and value to the UserState.
 
Methods inherited from class eu.semaine.components.Component
act, customStartIO, exitRequested, getMeta, hasSystemJustBecomeReady, messageAvailableFrom, requestExit, run
 
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
 

Constructor Detail

NonVerbalInterpreter

public NonVerbalInterpreter()
                     throws JMSException
Constructor of NonVerBalInterpreter

Throws:
JMSException
Method Detail

react

public void react(SEMAINEMessage m)
           throws JMSException
Checks if the received message is an EmmaMessage, and based on the content it will check if the confidence is high enough to put the received data in the UserState.

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

checkNewAUList

public void checkNewAUList(java.util.HashSet<java.lang.Integer> auList)
                    throws JMSException
Throws:
JMSException

sendUserStateChange

public void sendUserStateChange(java.lang.String shortName,
                                java.lang.String value)
                         throws JMSException
Sends the given variable name and value to the UserState.

Throws:
JMSException

sendUserStateChange

public void sendUserStateChange(java.lang.String[] shortNames,
                                java.lang.String[] values)
                         throws JMSException
Sends the given variable names and values to the UserState.

Throws:
JMSException