|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.tools.gui.util.ModelBuilder
public class ModelBuilder
This class builds a model of the sphinx configurable system it will create ConfigurableComponent
and
ConfigurableProperty
instances as the main components of the model.
Method Summary | |
---|---|
boolean |
checkDuplicateConfigurationSet(java.lang.String name)
Check if there is already a configuration set with this name in the whole model |
void |
clearAll()
This method is inherited from GUIFileActionListener Delete all configurable property values that are stored in the Model |
java.util.Iterator |
getClasses()
|
java.util.Iterator |
getClassGroup(java.lang.String groupname)
|
java.util.Map |
getclasslist(java.lang.String classtype)
get list of Configurable classes that is of specified type |
java.util.Iterator |
getGroups()
|
static ModelBuilder |
getInstance()
Obtain a reference to the ModelBuilder instance. |
java.lang.String |
getSourceCode(java.lang.String classname)
This method would return the source code for the specified class name |
void |
modelRefresh()
This method is inherited from GUIFileActionListener Reload model |
void |
printModel()
This function is used to trace the whole Sphinx model and print out all the Component and Property information, including its configuration values |
void |
refresh()
Refresh the Sphinx model |
void |
saveData(ConfigProperties cp)
This method is inherited from GUIFileActionListener Currently the saved data all come only from ModelBuilder |
void |
update(ConfigProperties cp)
This method is inherited from GUIFileActionListener update the model by reloading the configuration values |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ModelBuilder getInstance()
ModelBuilder
instance. There is only one ModelBuilder instance created for
the whole system.
ModelBuilder
singleton objectpublic java.util.Iterator getClasses()
Iterator
for all the classes in the modelpublic java.util.Iterator getGroups()
public boolean checkDuplicateConfigurationSet(java.lang.String name)
name
-
true
if configuration with specified name existspublic void clearAll()
clearAll
in interface GUIFileActionListener
public void update(ConfigProperties cp)
update
in interface GUIFileActionListener
cp
- ConfigProperty
that holds the new property valuespublic void saveData(ConfigProperties cp)
saveData
in interface GUIFileActionListener
cp
- load all the data to be saved into cppublic void modelRefresh() throws ConfigurableUtilException
modelRefresh
in interface GUIFileActionListener
ConfigurableUtilException
public java.lang.String getSourceCode(java.lang.String classname)
classname
- Name of class to be searchedpublic java.util.Map getclasslist(java.lang.String classtype)
classtype
- Type of class
public java.util.Iterator getClassGroup(java.lang.String groupname)
Iterator
for the specified grouppublic void printModel()
public void refresh() throws ConfigurableUtilException
ConfigurableUtilException
- when there is an error during re-reading of Sphinx system
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |