public class RejectionTracker extends java.lang.Object implements ResultListener, Resetable, Monitor, StateListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_RECOGNIZER
The property that defines which recognizer to monitor
|
static java.lang.String |
PROP_SHOW_DETAILS
The property that defines whether detailed accuracy information is displayed
|
static java.lang.String |
PROP_SHOW_SUMMARY
The property that defines whether summary accuracy information is displayed
|
Constructor and Description |
---|
RejectionTracker() |
RejectionTracker(Recognizer recognizer,
boolean showSummary,
boolean showDetails) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
void |
newResult(Result result)
Method called when a new result is generated
|
void |
reset()
Resets this component.
|
void |
statusChanged(Recognizer.State status)
Called when the status has changed.
|
@S4Component(type=Recognizer.class) public static final java.lang.String PROP_RECOGNIZER
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_SHOW_SUMMARY
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_SHOW_DETAILS
public RejectionTracker(Recognizer recognizer, boolean showSummary, boolean showDetails)
public RejectionTracker()
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 reset()
Resetable
public java.lang.String getName()
public void newResult(Result result)
ResultListener
newResult
in interface ResultListener
result
- the new resultpublic void statusChanged(Recognizer.State status)
StateListener
statusChanged
in interface StateListener
status
- the new status