edu.cmu.sphinx.instrumentation
Class BeamFinder

java.lang.Object
  extended by edu.cmu.sphinx.instrumentation.BeamFinder
All Implemented Interfaces:
ResultListener, Resetable, StateListener, Configurable, java.util.EventListener

public class BeamFinder
extends java.lang.Object
implements ResultListener, Resetable, StateListener

Monitors the absolute and relative beam sizes required to achieve the optimum recognition results and reports this data.


Field Summary
static java.lang.String PROP_ENABLED
          A sphinx property that define whether this beam tracker is enabled
static boolean PROP_ENABLED_DEFAULT
          The default setting of PROP_ENABLED
static java.lang.String PROP_LOG_MATH
          A Sphinx property that defines which recognizer 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_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
 java.lang.String TOKEN_RANK
           
 
Constructor Summary
BeamFinder()
           
 
Method Summary
 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 the beam statistics
 void showLatestResult()
          show the latest result
 void showSummary()
          show the summary result
 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
A Sphinx property that defines which recognizer to monitor

See Also:
Constant Field Values

PROP_LOG_MATH

@S4Component(type=LogMath.class)
public static final java.lang.String PROP_LOG_MATH
A Sphinx property that defines which recognizer to monitor

See Also:
Constant Field Values

PROP_SHOW_SUMMARY

@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_SHOW_SUMMARY
A sphinx property that define whether summary accuracy information is displayed

See Also:
Constant Field Values

PROP_SHOW_SUMMARY_DEFAULT

public static final boolean PROP_SHOW_SUMMARY_DEFAULT
The default setting of PROP_SHOW_SUMMARY

See Also:
Constant Field Values

PROP_SHOW_DETAILS

@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_SHOW_DETAILS
A sphinx property that define whether detailed accuracy information is displayed

See Also:
Constant Field Values

PROP_SHOW_DETAILS_DEFAULT

public static final boolean PROP_SHOW_DETAILS_DEFAULT
The default setting of PROP_SHOW_DETAILS

See Also:
Constant Field Values

PROP_ENABLED

@S4Boolean(defaultValue=true)
public static final java.lang.String PROP_ENABLED
A sphinx property that define whether this beam tracker is enabled

See Also:
Constant Field Values

PROP_ENABLED_DEFAULT

public static final boolean PROP_ENABLED_DEFAULT
The default setting of PROP_ENABLED

See Also:
Constant Field Values

TOKEN_RANK

public final java.lang.String TOKEN_RANK
See Also:
Constant Field Values
Constructor Detail

BeamFinder

public BeamFinder()
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.

getName

public java.lang.String getName()

reset

public void reset()
Resets the beam statistics

Specified by:
reset in interface Resetable

newResult

public void newResult(Result result)
Description copied from interface: ResultListener
Method called when a new result is generated

Specified by:
newResult in interface ResultListener
Parameters:
result - the new result

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

showLatestResult

public void showLatestResult()
show the latest result


showSummary

public void showSummary()
show the summary result