|
||||||||||
| 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.actionproposers.RandomUtteranceActionProposer
public class RandomUtteranceActionProposer
| 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 | |
|---|---|
RandomUtteranceActionProposer()
Constructor of ResponseActionProposer Initializes all Senders and Receivers, and initializes everything. |
|
| Method Summary | |
|---|---|
void |
act()
Act method, called every 50ms. |
org.w3c.dom.Document |
constructFMLDocument(java.util.ArrayList<java.lang.String> argNames,
java.util.ArrayList<java.lang.String> argValues)
Constructs a FML-document from the given arguments |
java.lang.String |
createHash(eu.semaine.components.dialogue.datastructures.Response r,
java.util.ArrayList<java.lang.String> argNames,
java.util.ArrayList<java.lang.String> argValues)
Creates a unique Hash from the given list of arguments, to make a unique identifier of this particular Response. |
void |
execute(eu.semaine.components.dialogue.informationstate.InformationState is,
java.util.ArrayList<java.lang.String> argNames,
java.util.ArrayList<java.lang.String> argValues)
Executes the Behaviour of a Template, with the given InformationState, and the given list of arguments. |
void |
getCombinedUserDialogueAct()
Combines all DialogueActs of the last UserTurn, and puts this in the InformationState |
static RandomUtteranceActionProposer |
getMyClass()
Returns the instance of this class. |
eu.semaine.components.dialogue.datastructures.Response |
getResponse(java.util.ArrayList<java.lang.String> argNames,
java.util.ArrayList<java.lang.String> argValues)
Retrieves the Response from the given list of arguments. |
eu.semaine.components.dialogue.datastructures.Response |
getResponseFromGroup(java.lang.String group)
|
void |
prepare(eu.semaine.components.dialogue.informationstate.InformationState is,
java.util.ArrayList<java.lang.String> argNames,
java.util.ArrayList<java.lang.String> argValues)
Executes the Behaviour of a Template, with the given InformationState, and the given list of arguments. |
void |
react(SEMAINEMessage m)
Updates the InformationState based on the SemaineMessages it receives |
void |
sendData(java.lang.String name,
java.lang.String value,
java.lang.String channel)
Sends the given data to the other Semaine components |
void |
sendDataAtEndOfTurn(java.lang.String name,
java.lang.String value,
java.lang.String channel)
Adds the given data to the list of data to send to Semaine at the end of the Agent's turn |
void |
sendSpeaking()
Updates the InformationState with the behaviour that the Agent is performing now |
void |
setISEmotions(java.lang.String emotion,
java.util.ArrayList<java.lang.Float> nrLow,
java.util.ArrayList<java.lang.Float> nrHigh)
Based on the given emotion-name, and the list of low and high receives intensities, calculate the min,max and average values, and put this in the InformationState. |
java.lang.String |
speechReady(SEMAINEXMLMessage xm)
This method checks if the given message contains the end signal of the animation that the agent is playing. |
boolean |
speechStarted(SEMAINEXMLMessage xm)
This method checks if the given message contains the start signal of the animation that the agent is going to play next. |
void |
summarizeEmotionEvents()
Summarizes the detected Emotional events and puts this in the InformationState |
void |
summarizeFeatures()
Summarizes the detected AudioFeatures and puts this in the InformationState |
| Methods inherited from class eu.semaine.components.Component |
|---|
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 |
|---|
public RandomUtteranceActionProposer()
throws JMSException
JMSException| Method Detail |
|---|
public static RandomUtteranceActionProposer getMyClass()
public void act()
throws JMSException
act in class ComponentJMSException - if communication with the JMS server goes wrong.
public void react(SEMAINEMessage m)
throws JMSException
react in class ComponentJMSException - if communication with the JMS server goes wrong.public boolean speechStarted(SEMAINEXMLMessage xm)
xm - the message to check
public java.lang.String speechReady(SEMAINEXMLMessage xm)
throws JMSException
xm - the message to check
JMSExceptionpublic void summarizeEmotionEvents()
public void setISEmotions(java.lang.String emotion,
java.util.ArrayList<java.lang.Float> nrLow,
java.util.ArrayList<java.lang.Float> nrHigh)
emotion - - the name of the Emotion this data belongs tonrLow - - the number of low emotion-values (<0)nrHigh - - the number of high emotion-values (>=0)public void summarizeFeatures()
public void getCombinedUserDialogueAct()
public void sendSpeaking()
public void sendDataAtEndOfTurn(java.lang.String name,
java.lang.String value,
java.lang.String channel)
name - - the name of the data-element to send.value - - the value of the data-element to send.channel - - the Semaine-channel to send the data too.
public void sendData(java.lang.String name,
java.lang.String value,
java.lang.String channel)
throws JMSException
name - - the name of the data-element to send.value - - the value of the data-element to send.channel - - the Semaine-channel to send the data too (could be 'dialogstate' and 'contextstate')
JMSException
public void execute(eu.semaine.components.dialogue.informationstate.InformationState is,
java.util.ArrayList<java.lang.String> argNames,
java.util.ArrayList<java.lang.String> argValues)
execute in interface eu.semaine.components.dialogue.behaviourselection.behaviours.BehaviourClassis - - the current InformationStateargNames - - the list of names of the given argumentsargValues - - the list of values of the given arguments
public void prepare(eu.semaine.components.dialogue.informationstate.InformationState is,
java.util.ArrayList<java.lang.String> argNames,
java.util.ArrayList<java.lang.String> argValues)
prepare in interface eu.semaine.components.dialogue.behaviourselection.behaviours.BehaviourClassis - - the current InformationStateargNames - - the list of names of the given argumentsargValues - - the list of values of the given arguments
public org.w3c.dom.Document constructFMLDocument(java.util.ArrayList<java.lang.String> argNames,
java.util.ArrayList<java.lang.String> argValues)
argNames - - the names of the given arguments.argValues - - the values of the given arguments.
public eu.semaine.components.dialogue.datastructures.Response getResponse(java.util.ArrayList<java.lang.String> argNames,
java.util.ArrayList<java.lang.String> argValues)
argNames - - the names of the given arguments.argValues - - the values of the given arguments.
public eu.semaine.components.dialogue.datastructures.Response getResponseFromGroup(java.lang.String group)
public java.lang.String createHash(eu.semaine.components.dialogue.datastructures.Response r,
java.util.ArrayList<java.lang.String> argNames,
java.util.ArrayList<java.lang.String> argValues)
argNames - - the names of the given arguments.argValues - - the values of the given arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||