public class MLSAFeatureFileWriter extends VoiceImportComponent
Modifier and Type | Field and Description |
---|---|
protected BasenameList |
bnlVocalizations |
protected DatabaseLayout |
db |
protected VocalizationUnitFileReader |
listenerUnits |
String |
MLSADIR |
String |
OUTMLSAFILE |
String |
UNITFILE |
bnl, logger, props, props2Help
Constructor and Description |
---|
MLSAFeatureFileWriter() |
Modifier and Type | Method and Description |
---|---|
boolean |
compute()
Do the computations required by this component.
|
SortedMap<String,String> |
getDefaultProps(DatabaseLayout db)
Get the map of properties2values containing the default values
|
String |
getName()
Get the name of this component
|
int |
getProgress()
Provide the progress of computation, in percent, or -1 if that feature is not implemented.
|
protected void |
initialiseComp()
Initialize this component
|
static void |
main(String[] args) |
protected void |
setupHelp() |
protected void |
writeHeaderTo(DataOutput out)
Write the header of this feature file to the given DataOutput
|
getHelpText, getHelpTextForProp, getProp, initialise, setProp
protected VocalizationUnitFileReader listenerUnits
protected DatabaseLayout db
protected BasenameList bnlVocalizations
public final String MLSADIR
public final String UNITFILE
public final String OUTMLSAFILE
public SortedMap<String,String> getDefaultProps(DatabaseLayout db)
VoiceImportComponent
getDefaultProps
in class VoiceImportComponent
db
- dbprotected void setupHelp()
setupHelp
in class VoiceImportComponent
public boolean compute() throws Exception
VoiceImportComponent
compute
in class VoiceImportComponent
Exception
- Exceptionprotected void initialiseComp() throws Exception
initialiseComp
in class VoiceImportComponent
Exception
- if there is problem with basename listprotected void writeHeaderTo(DataOutput out) throws IOException
out
- DataOutput to write headerIOException
- if it can't write data into DataOutputpublic String getName()
VoiceImportComponent
getName
in class VoiceImportComponent
public int getProgress()
VoiceImportComponent
getProgress
in class VoiceImportComponent
public static void main(String[] args)
args
- argsCopyright © 2000–2016 DFKI GmbH. All rights reserved.