edu.cmu.sphinx.instrumentation
Class RecognizerMonitor

java.lang.Object
  extended by edu.cmu.sphinx.instrumentation.RecognizerMonitor
All Implemented Interfaces:
Monitor, StateListener, Configurable, java.util.EventListener

public class RecognizerMonitor
extends java.lang.Object
implements StateListener, Monitor

Monitor the state transitions of a given recognizer. This monitor maintains lists of components that should be 'run' when a recognizer state change is detected.


Field Summary
static java.lang.String PROP_ALLOCATED_MONITORS
          The sphinx property that defines all of the monitors to call when the recognizer is allocated
static java.lang.String PROP_DEALLOCATED_MONITORS
          The sphinx property that defines all of the monitors to call when the recognizer is deallocated
static java.lang.String PROP_RECOGNIZER
          the sphinx property for the recognizer to monitor
 
Constructor Summary
RecognizerMonitor()
           
 
Method Summary
 void newProperties(PropertySheet ps)
          This method is called when this configurable component needs to be reconfigured.
 void statusChanged(RecognizerState status)
          Called when the status has changed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_RECOGNIZER

@S4Component(type=Recognizer.class)
public static final java.lang.String PROP_RECOGNIZER
the sphinx property for the recognizer to monitor

See Also:
Constant Field Values

PROP_ALLOCATED_MONITORS

@S4ComponentList(type=Configurable.class)
public static final java.lang.String PROP_ALLOCATED_MONITORS
The sphinx property that defines all of the monitors to call when the recognizer is allocated

See Also:
Constant Field Values

PROP_DEALLOCATED_MONITORS

@S4ComponentList(type=Configurable.class)
public static final java.lang.String PROP_DEALLOCATED_MONITORS
The sphinx property that defines all of the monitors to call when the recognizer is deallocated

See Also:
Constant Field Values
Constructor Detail

RecognizerMonitor

public RecognizerMonitor()
Method Detail

newProperties

public void newProperties(PropertySheet ps)
                   throws PropertyException
Description copied from interface: Configurable
This method is called when this configurable component needs to be reconfigured.

Specified by:
newProperties in interface Configurable
Parameters:
ps - a property sheet holding the new data
Throws:
PropertyException - if there is a problem with the properties.

statusChanged

public void statusChanged(RecognizerState status)
Description copied from interface: StateListener
Called when the status has changed.

Specified by:
statusChanged in interface StateListener
Parameters:
status - the new status