public class SCostFileReader extends Object
| Constructor and Description |
|---|
SCostFileReader()
Empty constructor; need to call load() separately.
|
SCostFileReader(String fileName)
Create a unit file reader from the given unit file
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfUnits()
Get the number of units in the file.
|
double |
getSCost(int index)
Get sCost for a unit index
|
void |
load(String fileName)
Load the given unit file
|
public SCostFileReader()
load(String)public SCostFileReader(String fileName) throws IOException, MaryConfigurationException
fileName - the unit file to readIOException - if a problem occurs while readingMaryConfigurationException - MaryConfigurationExceptionpublic void load(String fileName) throws IOException, MaryConfigurationException
fileName - the unit file to readIOException - if a problem occurs while readingMaryConfigurationException - MaryConfigurationExceptionpublic int getNumberOfUnits()
public double getSCost(int index)
index - indexCopyright © 2000–2016 DFKI GmbH. All rights reserved.