|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
at.tuwien.ifs.somtoolbox.properties.FileProperties
public class FileProperties
Properties for I/O stuff.
Field Summary | |
---|---|
private String |
databaseName
|
private String |
databasePassword
|
private String |
databaseServerAddress
|
private String |
databaseTableNamePrefix
|
private String |
databaseUser
|
private boolean |
isNormalized
|
private String |
namePrefix
|
private int |
numCacheBlocks
|
private String |
outputDirectory
|
private long |
randomSeed
|
private static long |
serialVersionUID
|
private String |
sourceFileName
|
private boolean |
sparseData
|
private String |
templateFileName
|
private boolean |
usingDatabase
|
private String |
vectorFileName
|
private String |
workingDirectory
|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
FileProperties(Properties properties)
|
|
FileProperties(String fname)
Loads and encapsulated properties related to the input data. |
Method Summary | |
---|---|
String |
getDatabaseName()
|
String |
getDatabasePassword()
|
String |
getDatabaseServerAddress()
|
String |
getDatabaseTableNamePrefix()
|
String |
getDatabaseUser()
|
boolean |
isNormalized()
Returns true , if the vectors are normalized to unit length. |
boolean |
isUsingDatabase()
|
String |
namePrefix(boolean withPrefix)
Returns the name of the test run. |
int |
numCacheBlocks()
Not used at the moment. |
String |
outputDirectory()
Returns the name of the output directory. |
private void |
parse()
|
private String |
prependDirectory(boolean withPrefix,
String path,
String dir)
|
private String |
prependDirectory(String path,
String dir)
|
long |
randomSeed()
Returns the random seed. |
void |
setUsingDatabase(boolean usedatabase)
|
boolean |
sparseData()
Returns true if the input data vectors are sparsely populated. |
String |
templateFileName(boolean withPrefix)
Returns the name of the template vector file. |
String |
vectorFileName(boolean withPrefix)
Returns the name of the input vector file. |
String |
workingDirectory()
Returns the name of the working directory. |
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private boolean isNormalized
private String namePrefix
private int numCacheBlocks
private String outputDirectory
private long randomSeed
private boolean sparseData
private String templateFileName
private String vectorFileName
private String workingDirectory
private boolean usingDatabase
private String databaseServerAddress
private String databaseName
private String databaseUser
private String databasePassword
private String databaseTableNamePrefix
private String sourceFileName
Constructor Detail |
---|
public FileProperties(String fname) throws PropertiesException
fname
- Name of the properties file.
PropertiesException
public FileProperties(Properties properties) throws PropertiesException
PropertiesException
Method Detail |
---|
private void parse() throws PropertiesException
PropertiesException
public boolean isNormalized()
true
, if the vectors are normalized to unit length. This information is used for map
creation to know when to normalize the units' weight vectors.
true
, if the vectors are normalized to unit length.public String namePrefix(boolean withPrefix)
public int numCacheBlocks()
public String outputDirectory()
public long randomSeed()
public boolean sparseData()
true
if the input data vectors are sparsely populated.
true
if the input data vectors are sparsely populated.public String templateFileName(boolean withPrefix)
withPrefix
is true.
withPrefix
- determines if the file name is prefixed with the working directory.
private String prependDirectory(boolean withPrefix, String path, String dir)
private String prependDirectory(String path, String dir)
public String vectorFileName(boolean withPrefix)
withPrefix
is true.
withPrefix
- determines if the file name is prefixed with the working directory.
public String workingDirectory()
public boolean isUsingDatabase()
public void setUsingDatabase(boolean usedatabase)
public String getDatabaseName()
public String getDatabasePassword()
public String getDatabaseServerAddress()
public String getDatabaseUser()
public String getDatabaseTableNamePrefix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |