|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
eu.semaine.components.Component
eu.semaine.components.dialogue.interpreters.EmotionInterpreter
public class EmotionInterpreter
The EmotionInterpreter reads the emotions detected by the input modules, and if they are higher than a certain threshold this emotion is send to the user state. Emotions: Valence, Arousal, Potency, Emotion-Quadrant Other factors: Interest, Gender Input EmmaReceiver('semaine.data.state.user.emma') Output StateSender('semaine.data.state.user')
| 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 | |
|---|---|
EmotionInterpreter()
Constructor of EmotionInterpreter Initializes the Senders and Receivers |
|
| Method Summary | |
|---|---|
float[] |
getEmotions(SEMAINEEmmaMessage em)
Retrieves the emotions from the given Message |
java.lang.String |
getGender(SEMAINEEmmaMessage em)
|
void |
react(SEMAINEMessage m)
Reads the emotions sends in EmmaMessages and determines the values. |
void |
sendEmotions(float valence,
float arousal,
float potency,
float interest,
java.lang.String gender)
Sends the given emotion with the given value to the UserState |
| 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 |
| Constructor Detail |
|---|
public EmotionInterpreter()
throws javax.jms.JMSException
javax.jms.JMSException| Method Detail |
|---|
public void react(SEMAINEMessage m)
throws javax.jms.JMSException
react in class Componentjavax.jms.JMSException - if communication with the JMS server goes wrong.
public java.lang.String getGender(SEMAINEEmmaMessage em)
throws javax.jms.JMSException
javax.jms.JMSException
public float[] getEmotions(SEMAINEEmmaMessage em)
throws javax.jms.JMSException
m - - the message to read
javax.jms.JMSException
public void sendEmotions(float valence,
float arousal,
float potency,
float interest,
java.lang.String gender)
throws javax.jms.JMSException
emotion - - the emotion to sendvalue - - the value of the emotion to send
javax.jms.JMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||