|
||||||||||
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<java.lang.Object,java.lang.Object>
java.util.Properties
at.tuwien.ifs.somtoolbox.properties.FileProperties
public class FileProperties
Properties for I/O stuff.
Field Summary | |
---|---|
(package private) static com.martiansoftware.jsap.FlaggedOption[] |
DATABASE_OPTIONS
|
private java.lang.String |
databaseName
|
private java.lang.String |
databasePassword
|
private java.lang.String |
databaseServerAddress
|
private java.lang.String |
databaseTableNamePrefix
|
private java.lang.String |
databaseUser
|
(package private) static com.martiansoftware.jsap.FlaggedOption[] |
FILE_OPTIONS
|
private boolean |
isNormalized
|
private java.lang.String |
namePrefix
|
private int |
numCacheBlocks
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_DB_NAME
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_DB_PASSWORD
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_DB_SERVER
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_DB_TABLE_PREFIX
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_DB_USER
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_INPUT_VECTOR
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_NAME_PREFIX
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_NORMALIZED
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_NUM_CACHE_BLOCKS
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_OUTPUT_DIRECTORY
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_RANDOM_SEED
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_SPARSE_DATA
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_TEMPLATE_VECTOR
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_USE_DB
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_WORKING_DIRECTORY
|
private java.lang.String |
outputDirectory
|
private long |
randomSeed
|
private static long |
serialVersionUID
|
private java.lang.String |
sourceFileName
|
private boolean |
sparseData
|
private java.lang.String |
templateFileName
|
private boolean |
usingDatabase
|
private java.lang.String |
vectorFileName
|
private java.lang.String |
workingDirectory
|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
FileProperties(java.util.Properties properties)
|
|
FileProperties(java.lang.String fname)
Loads and encapsulated properties related to the input data. |
Method Summary | |
---|---|
java.lang.String |
getDatabaseName()
|
java.lang.String |
getDatabasePassword()
|
java.lang.String |
getDatabaseServerAddress()
|
java.lang.String |
getDatabaseTableNamePrefix()
|
java.lang.String |
getDatabaseUser()
|
boolean |
isNormalized()
Returns true , if the vectors are normalized to unit length. |
boolean |
isUsingDatabase()
|
java.lang.String |
namePrefix(boolean withPrefix)
Returns the name of the test run. |
int |
numCacheBlocks()
Not used at the moment. |
java.lang.String |
outputDirectory()
Returns the name of the output directory. |
private void |
parse()
|
private java.lang.String |
prependDirectory(boolean withPrefix,
java.lang.String path,
java.lang.String dir)
|
private java.lang.String |
prependDirectory(java.lang.String path,
java.lang.String dir)
|
long |
randomSeed()
Returns the random seed. |
void |
setUsingDatabase(boolean usedatabase)
|
boolean |
sparseData()
Returns true if the input data vectors are sparsely populated. |
java.lang.String |
templateFileName(boolean withPrefix)
Returns the name of the template vector file. |
java.lang.String |
vectorFileName(boolean withPrefix)
Returns the name of the input vector file. |
java.lang.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 |
---|
static final com.martiansoftware.jsap.FlaggedOption OPTION_WORKING_DIRECTORY
static final com.martiansoftware.jsap.FlaggedOption OPTION_OUTPUT_DIRECTORY
static final com.martiansoftware.jsap.FlaggedOption OPTION_NAME_PREFIX
static final com.martiansoftware.jsap.FlaggedOption OPTION_INPUT_VECTOR
static final com.martiansoftware.jsap.FlaggedOption OPTION_TEMPLATE_VECTOR
static final com.martiansoftware.jsap.FlaggedOption OPTION_SPARSE_DATA
static final com.martiansoftware.jsap.FlaggedOption OPTION_NORMALIZED
static final com.martiansoftware.jsap.FlaggedOption OPTION_RANDOM_SEED
static final com.martiansoftware.jsap.FlaggedOption OPTION_NUM_CACHE_BLOCKS
static final com.martiansoftware.jsap.FlaggedOption OPTION_USE_DB
static final com.martiansoftware.jsap.FlaggedOption OPTION_DB_SERVER
static final com.martiansoftware.jsap.FlaggedOption OPTION_DB_NAME
static final com.martiansoftware.jsap.FlaggedOption OPTION_DB_USER
static final com.martiansoftware.jsap.FlaggedOption OPTION_DB_PASSWORD
static final com.martiansoftware.jsap.FlaggedOption OPTION_DB_TABLE_PREFIX
static final com.martiansoftware.jsap.FlaggedOption[] FILE_OPTIONS
static final com.martiansoftware.jsap.FlaggedOption[] DATABASE_OPTIONS
private static final long serialVersionUID
private boolean isNormalized
private java.lang.String namePrefix
private int numCacheBlocks
private java.lang.String outputDirectory
private long randomSeed
private boolean sparseData
private java.lang.String templateFileName
private java.lang.String vectorFileName
private java.lang.String workingDirectory
private boolean usingDatabase
private java.lang.String databaseServerAddress
private java.lang.String databaseName
private java.lang.String databaseUser
private java.lang.String databasePassword
private java.lang.String databaseTableNamePrefix
private java.lang.String sourceFileName
Constructor Detail |
---|
public FileProperties(java.lang.String fname) throws PropertiesException
fname
- Name of the properties file.
PropertiesException
public FileProperties(java.util.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 java.lang.String namePrefix(boolean withPrefix)
public int numCacheBlocks()
public java.lang.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 java.lang.String templateFileName(boolean withPrefix)
withPrefix
is true.
withPrefix
- determines if the file name is prefixed with the working directory.
private java.lang.String prependDirectory(boolean withPrefix, java.lang.String path, java.lang.String dir)
private java.lang.String prependDirectory(java.lang.String path, java.lang.String dir)
public java.lang.String vectorFileName(boolean withPrefix)
withPrefix
is true.
withPrefix
- determines if the file name is prefixed with the working directory.
public java.lang.String workingDirectory()
public boolean isUsingDatabase()
public void setUsingDatabase(boolean usedatabase)
public java.lang.String getDatabaseName()
public java.lang.String getDatabasePassword()
public java.lang.String getDatabaseServerAddress()
public java.lang.String getDatabaseUser()
public java.lang.String getDatabaseTableNamePrefix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |