public class RecognizerMonitor extends java.lang.Object implements StateListener, Monitor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_ALLOCATED_MONITORS
The property that defines all of the monitors to call when the recognizer is allocated
|
static java.lang.String |
PROP_DEALLOCATED_MONITORS
The property that defines all of the monitors to call when the recognizer is deallocated
|
static java.lang.String |
PROP_RECOGNIZER
The property for the recognizer to monitor
|
Constructor and Description |
---|
RecognizerMonitor() |
RecognizerMonitor(Recognizer recognizer,
java.util.List<java.lang.Runnable> allocatedMonitors,
java.util.List<java.lang.Runnable> deallocatedMonitors) |
Modifier and Type | Method and Description |
---|---|
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.
|
@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
public RecognizerMonitor(Recognizer recognizer, java.util.List<java.lang.Runnable> allocatedMonitors, java.util.List<java.lang.Runnable> deallocatedMonitors)
public RecognizerMonitor()
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.public void statusChanged(Recognizer.State status)
StateListener
statusChanged
in interface StateListener
status
- the new status