|
||||||||||
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 | |
---|---|
(package private) static com.martiansoftware.jsap.FlaggedOption[] |
DATABASE_OPTIONS
|
private String |
databaseName
|
private String |
databasePassword
|
private String |
databaseServerAddress
|
private String |
databaseTableNamePrefix
|
private String |
databaseUser
|
(package private) static com.martiansoftware.jsap.FlaggedOption[] |
FILE_OPTIONS
|
private boolean |
isNormalized
|
private 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 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 |
---|
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 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 |