| 
 | ||||||||||
| 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 | 
|  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()This method prints the given line in the output textarea | 
|  void | printLine(java.lang.String line)This method prints the given line in the output textarea | 
|  void | printLines() | 
|  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 | 
|  void | sendUtteranceToMary(java.lang.String response)Sends the given utterance to the output modules. | 
| 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 | 
| Field Detail | 
|---|
public long lastTickTime
public boolean typing
| Constructor Detail | 
|---|
public TestGui()
        throws JMSException
JMSException| Method Detail | 
|---|
public void act()
ComponentComponent.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 JMSException
react in class ComponentJMSException - if communication with the JMS server goes wrong.
public java.lang.String getSentence(SEMAINEMessage m)
                             throws JMSException
m - the message to detect the sentence in
JMSExceptionpublic void initGui()
public javax.swing.JPanel createInputSide()
public void newInput()
public void printLine(java.lang.String line)
line - - the line to printpublic void printLine()
line - - the line to printpublic void printLines()
public void keyPressed()
public void sendUtterance(java.lang.String line)
line - public void sendSpeaking()
public void sendSilent()
public long getTime()
public void sendUtteranceToMary(java.lang.String response)
                         throws JMSException
utterance - 
JMSException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||