public abstract class VoiceImportComponent extends Object
Modifier and Type | Field and Description |
---|---|
protected BasenameList |
bnl |
protected DatabaseLayout |
db |
protected org.apache.log4j.Logger |
logger |
protected SortedMap<String,String> |
props |
protected SortedMap<String,String> |
props2Help |
Modifier | Constructor and Description |
---|---|
protected |
VoiceImportComponent() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
compute()
Do the computations required by this component.
|
abstract SortedMap<String,String> |
getDefaultProps(DatabaseLayout db)
Get the map of properties2values containing the default values
|
String |
getHelpText() |
String |
getHelpTextForProp(String propname) |
abstract String |
getName()
Get the name of this component
|
abstract int |
getProgress()
Provide the progress of computation, in percent, or -1 if that feature is not implemented.
|
String |
getProp(String prop)
Get the value for a property
|
void |
initialise(DatabaseLayout db,
BasenameList bnl,
SortedMap<String,String> props)
Initialise a voice import component: update values of local properties; setup help text for properties; call to component
specific intialisation
|
protected void |
initialiseComp()
Initialise a voice import component: component specific initialisation; to be overwritten by subclasses
|
void |
setProp(String prop,
String value)
Set a property to a value
|
protected abstract void |
setupHelp() |
protected BasenameList bnl
protected DatabaseLayout db
protected org.apache.log4j.Logger logger
protected abstract void setupHelp()
public final void initialise(DatabaseLayout db, BasenameList bnl, SortedMap<String,String> props) throws Exception
db
- the database layoutbnl
- the list of basenamesprops
- the map from properties to valuesException
- Exceptionprotected void initialiseComp() throws Exception
Exception
- Exceptionpublic abstract SortedMap<String,String> getDefaultProps(DatabaseLayout db)
db
- dbpublic String getProp(String prop)
prop
- the property namepublic void setProp(String prop, String value)
prop
- the propertyvalue
- the valuepublic abstract String getName()
public abstract boolean compute() throws Exception
Exception
- Exceptionpublic abstract int getProgress()
public String getHelpText()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.