edu.cmu.sphinx.util.props.tools
Class GDLDumper

java.lang.Object
  extended by edu.cmu.sphinx.util.props.tools.GDLDumper

public class GDLDumper
extends java.lang.Object

Dumps a given configuration manager as GDL. ...

Author:
Holger Brandl

Constructor Summary
GDLDumper()
           
 
Method Summary
static void dumpComponentAsGDL(ConfigurationManager cm, java.io.PrintStream out, java.lang.String name)
          Dumps the given component as GDL to the given stream
static void dumpGDLFooter(java.io.PrintStream out)
          Dumps the footer for GDL output
static void dumpGDLHeader(java.io.PrintStream out)
          Outputs the GDL header
static java.lang.String getColor(ConfigurationManager ConfigurationManager, java.lang.String componentName)
          Gets the color for the given component
static void showConfigAsGDL(ConfigurationManager ConfigurationManager, java.lang.String path)
          Dumps the config as a GDL plot
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GDLDumper

public GDLDumper()
Method Detail

dumpComponentAsGDL

public static void dumpComponentAsGDL(ConfigurationManager cm,
                                      java.io.PrintStream out,
                                      java.lang.String name)
Dumps the given component as GDL to the given stream

Parameters:
out - where to dump the GDL
name - the name of the component to dump

showConfigAsGDL

public static void showConfigAsGDL(ConfigurationManager ConfigurationManager,
                                   java.lang.String path)
                            throws java.io.IOException
Dumps the config as a GDL plot

Parameters:
path - where to output the GDL
Throws:
java.io.IOException - if an error occurs

dumpGDLHeader

public static void dumpGDLHeader(java.io.PrintStream out)
Outputs the GDL header

Parameters:
out - the output stream

getColor

public static java.lang.String getColor(ConfigurationManager ConfigurationManager,
                                        java.lang.String componentName)
Gets the color for the given component

Parameters:
ConfigurationManager -
componentName - the name of the component @return the color name for the component

dumpGDLFooter

public static void dumpGDLFooter(java.io.PrintStream out)
Dumps the footer for GDL output

Parameters:
out - the output stream