|
||||||||||
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.test.TestGui
public class TestGui
This class creates a GUI to test the Dialogue Management. It provides a method to send input to the DM and to receive the output.
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 | |
---|---|
long |
lastTickTime
|
boolean |
typing
|
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 | |
---|---|
TestGui()
Creates a new GUI + Creates the Senders and Receivers + Creates and starts a timer class + Initializes the interface |
Method Summary | |
---|---|
void |
act()
Proactive actions. |
javax.swing.JPanel |
createInputSide()
Creates the inputside of the gui, puts this in a JPanel and returns this. |
java.lang.String |
getSentence(SEMAINEMessage m)
Returns the detected sentence in the SEMAINEMessage m |
long |
getTime()
|
void |
initGui()
Initializes the GUI |
boolean |
isSentence(SEMAINEMessage m)
Checks if the Message is ASR output and if it contains a sentence. |
void |
keyPressed()
Called when the user presses a key. |
void |
newInput()
This method is called when input is entered with the input textfield |
void |
printLine(java.lang.String line)
This method prints the given line in the output textarea |
void |
react(SEMAINEMessage m)
Called when a message is received Checks if the message contains FML. |
void |
sendSilent()
|
void |
sendSpeaking()
|
void |
sendUtterance(java.lang.String line)
Sends the given utterance to the userstate using an EmmaMessage |
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 |
Field Detail |
---|
public long lastTickTime
public boolean typing
Constructor Detail |
---|
public TestGui() throws javax.jms.JMSException
javax.jms.JMSException
Method Detail |
---|
public void act()
Component
Component.waitingTime
milliseconds if no messages arrive, and after every message processing.
This base implementation does nothing; subclasses should implement
suitable behaviour here.
act
in class Component
public void react(SEMAINEMessage m) throws javax.jms.JMSException
react
in class Component
javax.jms.JMSException
- if communication with the JMS server goes wrong.public boolean isSentence(SEMAINEMessage m) throws javax.jms.JMSException
m
- the message to check
javax.jms.JMSException
public java.lang.String getSentence(SEMAINEMessage m) throws javax.jms.JMSException
m
- the message to detect the sentence in
javax.jms.JMSException
public void initGui()
public javax.swing.JPanel createInputSide()
public void newInput()
public void printLine(java.lang.String line)
line
- - the line to printpublic void keyPressed()
public void sendUtterance(java.lang.String line)
line
- public void sendSpeaking()
public void sendSilent()
public long getTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |