|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinpro.incremental.PushBuffer
inpro.incremental.IUModule
demo.inpro.system.greifarm.GreifarmActor
public class GreifarmActor
GreifarmActor is the NLU and action management component for the Greifarm prototype (as the Greifarm prototype is not really a "dialogue system", but rather a speech-controlled application, we avoid the term "dialog manager") This class consists of the following components, which all live in their own subclasses:
GreifarmActor: the incremental processor (PushBuffer) which handles incoming IUs and initiates the corresponding processing. This class handles the global list of performed actions and of the words yet to process, as well as references to the NLU component, the greifarm handling, and the game score. It also provides a global logger.
NLU: processes incoming words and (depending on what has been done before) initiates actions (in the form of ActionIUs)
ActionIU: these IU
s are generated,
executed and put into the list of performed actions by the NLU.
Greifarm: handles concurrency stuff related to the greifarm GUI (which itself
lives in GreifArmGUI
Nested Class Summary |
---|
Nested classes/interfaces inherited from class inpro.incremental.IUModule |
---|
IUModule.RightBuffer |
Field Summary | |
---|---|
protected GameScore |
gameScore
the little score counter |
GreifarmController |
greifarmController
encapsulates greifarmController GUI and exposes only the task-dependent actions |
private static org.apache.log4j.Logger |
logger
|
private NLU |
nlu
|
private java.util.Deque<ActionIU> |
performedActions
actions already performed since the last call to processorReset() |
private java.util.Deque<WordIU> |
unusedWords
most recent words that are not yet part of an interpretation |
Fields inherited from class inpro.incremental.IUModule |
---|
iulisteners, PROP_HYP_CHANGE_LISTENERS, PROP_LOG_TO_TEDVIEW, PROP_TEDVIEW_LOG_ADDRESS, PROP_TEDVIEW_LOG_PORT, rightBuffer, tedLogAdapter |
Constructor Summary | |
---|---|
GreifarmActor()
|
Method Summary | |
---|---|
private void |
constructGUI()
|
void |
gameReset()
|
void |
leftBufferUpdate(java.util.Collection<? extends IU> ius,
java.util.List<? extends EditMessage<? extends IU>> edits)
the method that IU modules must implement |
void |
newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
|
void |
processorReset()
reset the IU lists, called when the processor should be restarted (unlike reset() which is called from Sphinx after every commit) |
void |
reset()
|
Methods inherited from class inpro.incremental.IUModule |
---|
getTime, hypChange, logToTedView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger logger
protected final GameScore gameScore
public final GreifarmController greifarmController
private final java.util.Deque<WordIU> unusedWords
private final java.util.Deque<ActionIU> performedActions
private final NLU nlu
Constructor Detail |
---|
public GreifarmActor()
Method Detail |
---|
public void leftBufferUpdate(java.util.Collection<? extends IU> ius, java.util.List<? extends EditMessage<? extends IU>> edits)
IUModule
leftBufferUpdate
in class IUModule
ius
- list of IUs that make up the current hypothesisedits
- a list of edits since the last callpublic void reset()
reset
in interface edu.cmu.sphinx.instrumentation.Resetable
reset
in class PushBuffer
public void processorReset()
public void gameReset()
private void constructGUI()
public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps) throws edu.cmu.sphinx.util.props.PropertyException
newProperties
in interface edu.cmu.sphinx.util.props.Configurable
newProperties
in class IUModule
edu.cmu.sphinx.util.props.PropertyException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |