inpro.incremental.processor
Class IUNetworkDialogueManager

java.lang.Object
  extended by inpro.incremental.PushBuffer
      extended by inpro.incremental.IUModule
          extended by inpro.incremental.processor.AbstractDialogueManager
              extended by inpro.incremental.processor.IUNetworkDialogueManager
All Implemented Interfaces:
edu.cmu.sphinx.instrumentation.Resetable, edu.cmu.sphinx.util.props.Configurable, AbstractFloorTracker.Listener, AudioActionManager.Listener

public class IUNetworkDialogueManager
extends AbstractDialogueManager
implements AudioActionManager.Listener


Nested Class Summary
 
Nested classes/interfaces inherited from class inpro.incremental.IUModule
IUModule.RightBuffer
 
Field Summary
protected  IUNetworkDomainUtil domain
          The domain utility wrapping information state creation
static java.lang.String PROP_DOMAIN
          The domain utility configuration
static java.lang.String PROP_LEX_SEMANTICS
          The lexical semantics mapping configuration variables
static java.lang.String PROP_STATE_LISTENERS
          The internal state listener configuration
protected  java.util.List<PushBuffer> stateListeners
          The list of state listeners
private  IUNetworkUpdateEngine updateEngine
          Update Engine holding rules, information state and interfaces for new input/output IUs.
 
Fields inherited from class inpro.incremental.processor.AbstractDialogueManager
doneQueue, floorSignalQueue, leftBufferQueue, updating
 
Fields inherited from class inpro.incremental.IUModule
iulisteners, logger, PROP_HYP_CHANGE_LISTENERS, PROP_LOG_TO_TEDVIEW, PROP_TEDVIEW_LOG_ADDRESS, PROP_TEDVIEW_LOG_PORT, rightBuffer, tedLogAdapter
 
Constructor Summary
IUNetworkDialogueManager()
           
 
Method Summary
 void done(DialogueActIU iu)
          Listens to an action manager.
 void leftBufferUpdate(java.util.Collection<? extends IU> ius, java.util.List<? extends EditMessage<? extends IU>> edits)
          Updates the IS with ADDed or REVOKEd WordIUs.
 void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
          Sets up the DM with lexical semantics and state listeners.
 void reset()
           
protected  void updateAll()
          Update state listeners and right buffer, then call AbstractDialogueManager.postUpdate() to release locks.
private  void updateStateListeners()
          Updates internal state listeners.
 
Methods inherited from class inpro.incremental.processor.AbstractDialogueManager
floor, postUpdate
 
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

PROP_LEX_SEMANTICS

@S4String(mandatory=true)
public static final java.lang.String PROP_LEX_SEMANTICS
The lexical semantics mapping configuration variables

See Also:
Constant Field Values

PROP_STATE_LISTENERS

@S4ComponentList(type=PushBuffer.class)
public static final java.lang.String PROP_STATE_LISTENERS
The internal state listener configuration

See Also:
Constant Field Values

stateListeners

protected java.util.List<PushBuffer> stateListeners
The list of state listeners


PROP_DOMAIN

@S4Component(type=IUNetworkDomainUtil.class)
public static final java.lang.String PROP_DOMAIN
The domain utility configuration

See Also:
Constant Field Values

domain

protected IUNetworkDomainUtil domain
The domain utility wrapping information state creation


updateEngine

private IUNetworkUpdateEngine updateEngine
Update Engine holding rules, information state and interfaces for new input/output IUs.

Constructor Detail

IUNetworkDialogueManager

public IUNetworkDialogueManager()
Method Detail

newProperties

public void newProperties(edu.cmu.sphinx.util.props.PropertySheet ps)
                   throws edu.cmu.sphinx.util.props.PropertyException
Sets up the DM with lexical semantics and state listeners.

Specified by:
newProperties in interface edu.cmu.sphinx.util.props.Configurable
Overrides:
newProperties in class IUModule
Throws:
edu.cmu.sphinx.util.props.PropertyException

leftBufferUpdate

public void leftBufferUpdate(java.util.Collection<? extends IU> ius,
                             java.util.List<? extends EditMessage<? extends IU>> edits)
Updates the IS with ADDed or REVOKEd WordIUs. Calls updateAll() to update listeners.

Overrides:
leftBufferUpdate in class AbstractDialogueManager
Parameters:
ius - list of IUs that make up the current hypothesis
edits - a list of edits since the last call

updateAll

protected void updateAll()
Update state listeners and right buffer, then call AbstractDialogueManager.postUpdate() to release locks.


updateStateListeners

private void updateStateListeners()
Updates internal state listeners.


reset

public void reset()
Specified by:
reset in interface edu.cmu.sphinx.instrumentation.Resetable
Overrides:
reset in class PushBuffer

done

public void done(DialogueActIU iu)
Description copied from class: AbstractDialogueManager
Listens to an action manager. Queues all done IUs for post-update processing. Must call postUpdate() if calling this method.

Specified by:
done in interface AudioActionManager.Listener
Overrides:
done in class AbstractDialogueManager