edu.cmu.sphinx.instrumentation
Class ConfigMonitor

java.lang.Object
  extended by edu.cmu.sphinx.instrumentation.ConfigMonitor
All Implemented Interfaces:
Monitor, Configurable, java.lang.Runnable

public class ConfigMonitor
extends java.lang.Object
implements Configurable, java.lang.Runnable, Monitor

Shows the configuration currently in use. This monitor is typically added as a recognition monitor such that the configuration is shown immediately after the recognizer is allocated.


Field Summary
static java.lang.String PROP_OUTFILE
           
static java.lang.String PROP_SAVE_CONFIG_AS_XML
          Sphinx property that is used to indicate whether or not this monitor should save the configuration in an XML document
static java.lang.String PROP_SHOW_CONFIG
          Sphinx property that is used to indicate whether or not this monitor should show the current configuration.
static java.lang.String PROP_SHOW_CONFIG_AS_GDL
          Sphinx property that is used to indicate whether or not this monitor should dump the configuration in an GDL document
static java.lang.String PROP_SHOW_CONFIG_AS_HTML
          Sphinx property that is used to indicate whether or not this monitor should dump the configuration in an HTML document
 
Constructor Summary
ConfigMonitor()
           
 
Method Summary
 void newProperties(PropertySheet ps)
          This method is called when this configurable component needs to be reconfigured.
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_SHOW_CONFIG

@S4Boolean(defaultValue=false)
public static final java.lang.String PROP_SHOW_CONFIG
Sphinx property that is used to indicate whether or not this monitor should show the current configuration.

See Also:
Constant Field Values

PROP_SHOW_CONFIG_AS_HTML

@S4Boolean(defaultValue=false)
public static final java.lang.String PROP_SHOW_CONFIG_AS_HTML
Sphinx property that is used to indicate whether or not this monitor should dump the configuration in an HTML document

See Also:
Constant Field Values

PROP_SHOW_CONFIG_AS_GDL

@S4Boolean(defaultValue=false)
public static final java.lang.String PROP_SHOW_CONFIG_AS_GDL
Sphinx property that is used to indicate whether or not this monitor should dump the configuration in an GDL document

See Also:
Constant Field Values

PROP_SAVE_CONFIG_AS_XML

@S4Boolean(defaultValue=false)
public static final java.lang.String PROP_SAVE_CONFIG_AS_XML
Sphinx property that is used to indicate whether or not this monitor should save the configuration in an XML document

See Also:
Constant Field Values

PROP_OUTFILE

@S4String(mandatory=false)
public static final java.lang.String PROP_OUTFILE
See Also:
Constant Field Values
Constructor Detail

ConfigMonitor

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

run

public void run()
Specified by:
run in interface java.lang.Runnable