|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.instrumentation.RecognizerMonitor
public class RecognizerMonitor
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()
|
|
RecognizerMonitor(Recognizer recognizer,
java.util.List<java.lang.Runnable> allocatedMonitors,
java.util.List<java.lang.Runnable> deallocatedMonitors)
|
|
| Method Summary | |
|---|---|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured. |
void |
statusChanged(Recognizer.State 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 |
|---|
@S4Component(type=Recognizer.class) public static final java.lang.String PROP_RECOGNIZER
@S4ComponentList(type=Configurable.class) public static final java.lang.String PROP_ALLOCATED_MONITORS
@S4ComponentList(type=Configurable.class) public static final java.lang.String PROP_DEALLOCATED_MONITORS
| Constructor Detail |
|---|
public RecognizerMonitor(Recognizer recognizer,
java.util.List<java.lang.Runnable> allocatedMonitors,
java.util.List<java.lang.Runnable> deallocatedMonitors)
public RecognizerMonitor()
| Method Detail |
|---|
public void newProperties(PropertySheet ps)
throws PropertyException
Configurable
newProperties in interface Configurableps - a property sheet holding the new data
PropertyException - if there is a problem with the properties.public void statusChanged(Recognizer.State status)
StateListener
statusChanged in interface StateListenerstatus - the new status
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||