|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.instrumentation.SpeedTracker
public class SpeedTracker
Monitors a recognizer for speed
Field Summary | |
---|---|
static java.lang.String |
PROP_FRONTEND
A Sphinx property that defines which frontend to monitor |
static java.lang.String |
PROP_RECOGNIZER
A Sphinx property that defines which recognizer to monitor |
static java.lang.String |
PROP_SHOW_DETAILS
A sphinx property that define whether detailed accuracy information is displayed |
static boolean |
PROP_SHOW_DETAILS_DEFAULT
The default setting of PROP_SHOW_DETAILS |
static java.lang.String |
PROP_SHOW_RESPONSE_TIME
A sphinx property that define whether detailed response information is displayed |
static boolean |
PROP_SHOW_RESPONSE_TIME_DEFAULT
The default setting of PROP_SHOW_RESPONSE |
static java.lang.String |
PROP_SHOW_SUMMARY
A sphinx property that define whether summary accuracy information is displayed |
static boolean |
PROP_SHOW_SUMMARY_DEFAULT
The default setting of PROP_SHOW_SUMMARY |
static java.lang.String |
PROP_SHOW_TIMERS
A sphinx property that define whether detailed timer information is displayed |
static boolean |
PROP_SHOW_TIMERS_DEFAULT
The default setting of PROP_SHOW_DETAILS |
Constructor Summary | |
---|---|
SpeedTracker()
|
Method Summary | |
---|---|
float |
getCumulativeSpeed()
Returns the cumulative speed of this decoder as a fraction of real time. |
java.lang.String |
getName()
|
float |
getSpeed()
Returns the speed of the last decoding as a fraction of real time. |
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 the speed statistics |
void |
signalOccurred(Signal signal)
Method called when a signal is detected |
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 |
---|
@S4Component(type=Recognizer.class) public static final java.lang.String PROP_RECOGNIZER
@S4Component(type=FrontEnd.class) public static final java.lang.String PROP_FRONTEND
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_SHOW_SUMMARY
public static final boolean PROP_SHOW_SUMMARY_DEFAULT
@S4Boolean(defaultValue=true) public static final java.lang.String PROP_SHOW_DETAILS
public static final boolean PROP_SHOW_DETAILS_DEFAULT
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_SHOW_RESPONSE_TIME
public static final boolean PROP_SHOW_RESPONSE_TIME_DEFAULT
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_SHOW_TIMERS
public static final boolean PROP_SHOW_TIMERS_DEFAULT
Constructor Detail |
---|
public SpeedTracker()
Method Detail |
---|
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new data
PropertyException
- if there is a problem with the properties.public java.lang.String getName()
public void newResult(Result result)
ResultListener
newResult
in interface ResultListener
result
- the new resultpublic float getSpeed()
public void reset()
reset
in interface Resetable
public float getCumulativeSpeed()
public void signalOccurred(Signal signal)
SignalListener
signalOccurred
in interface SignalListener
signal
- the signalpublic void statusChanged(RecognizerState status)
StateListener
statusChanged
in interface StateListener
status
- the new status
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |