public class FileProperties extends Properties
Modifier and Type | Field and Description |
---|---|
static com.martiansoftware.jsap.FlaggedOption[] |
DATABASE_OPTIONS |
private String |
databaseName |
private String |
databasePassword |
private String |
databaseServerAddress |
private String |
databaseTableNamePrefix |
private String |
databaseUser |
static com.martiansoftware.jsap.FlaggedOption[] |
FILE_OPTIONS |
private boolean |
isNormalized |
private String |
namePrefix |
private int |
numCacheBlocks |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_DB_NAME |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_DB_PASSWORD |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_DB_SERVER |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_DB_TABLE_PREFIX |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_DB_USER |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_INPUT_VECTOR |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_NAME_PREFIX |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_NORMALIZED |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_NUM_CACHE_BLOCKS |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_OUTPUT_DIRECTORY |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_RANDOM_SEED |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_SPARSE_DATA |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_TEMPLATE_VECTOR |
static com.martiansoftware.jsap.FlaggedOption |
OPTION_USE_DB |
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 |
defaults
Constructor and Description |
---|
FileProperties(Properties properties) |
FileProperties(String fname)
Loads and encapsulated properties related to the input data.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
public static final com.martiansoftware.jsap.FlaggedOption OPTION_WORKING_DIRECTORY
public static final com.martiansoftware.jsap.FlaggedOption OPTION_OUTPUT_DIRECTORY
public static final com.martiansoftware.jsap.FlaggedOption OPTION_NAME_PREFIX
public static final com.martiansoftware.jsap.FlaggedOption OPTION_INPUT_VECTOR
public static final com.martiansoftware.jsap.FlaggedOption OPTION_TEMPLATE_VECTOR
public static final com.martiansoftware.jsap.FlaggedOption OPTION_SPARSE_DATA
public static final com.martiansoftware.jsap.FlaggedOption OPTION_NORMALIZED
public static final com.martiansoftware.jsap.FlaggedOption OPTION_RANDOM_SEED
public static final com.martiansoftware.jsap.FlaggedOption OPTION_NUM_CACHE_BLOCKS
public static final com.martiansoftware.jsap.FlaggedOption OPTION_USE_DB
public static final com.martiansoftware.jsap.FlaggedOption OPTION_DB_SERVER
public static final com.martiansoftware.jsap.FlaggedOption OPTION_DB_NAME
public static final com.martiansoftware.jsap.FlaggedOption OPTION_DB_USER
public static final com.martiansoftware.jsap.FlaggedOption OPTION_DB_PASSWORD
public static final com.martiansoftware.jsap.FlaggedOption OPTION_DB_TABLE_PREFIX
public static final com.martiansoftware.jsap.FlaggedOption[] FILE_OPTIONS
public 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
public FileProperties(String fname) throws PropertiesException
fname
- Name of the properties file.PropertiesException
public FileProperties(Properties properties) throws PropertiesException
PropertiesException
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.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()