at.tuwien.ifs.somtoolbox.input
Class SOMLibMapDescription
java.lang.Object
at.tuwien.ifs.somtoolbox.input.SOMLibMapDescription
public class SOMLibMapDescription
- extends Object
A class handling SOMLib map files.
- Version:
- $Id: SOMLibMapDescription.java 3655 2010-07-13 15:24:01Z mayer $
- Author:
- Rudolf Mayer
Method Summary |
String |
getProperty(String key)
|
static void |
main(String[] args)
|
void |
readMapDescriptionFile(String fileName)
|
void |
setProperty(String propertyName,
boolean value)
|
void |
setProperty(String propertyName,
Date value)
|
void |
setProperty(String propertyName,
double value)
|
void |
setProperty(String propertyName,
double[] value)
|
void |
setProperty(String propertyName,
int value)
|
void |
setProperty(String propertyName,
long value)
|
void |
setProperty(String propertyName,
String value)
|
private void |
setProperty(String propertyName,
String value,
String[] validPropertyNames,
Class<?> type)
|
void |
writeMapDescriptionFile(String fileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
GRID_TOPOLOGY
public static final String GRID_TOPOLOGY
- See Also:
- Constant Field Values
GRID_LAYOUT
public static final String GRID_LAYOUT
- See Also:
- Constant Field Values
X_DIM
public static final String X_DIM
- See Also:
- Constant Field Values
Y_DIM
public static final String Y_DIM
- See Also:
- Constant Field Values
Z_DIM
public static final String Z_DIM
- See Also:
- Constant Field Values
VEC_DIM
public static final String VEC_DIM
- See Also:
- Constant Field Values
STORAGE_DATE
public static final String STORAGE_DATE
- See Also:
- Constant Field Values
TRAINING_TIME
public static final String TRAINING_TIME
- See Also:
- Constant Field Values
LEARNRATE_TYPE
public static final String LEARNRATE_TYPE
- See Also:
- Constant Field Values
LEARNRATE_INIT
public static final String LEARNRATE_INIT
- See Also:
- Constant Field Values
NEIGHBOURHOOD_TYPE
public static final String NEIGHBOURHOOD_TYPE
- See Also:
- Constant Field Values
NEIGHBOURHOOD_INIT
public static final String NEIGHBOURHOOD_INIT
- See Also:
- Constant Field Values
RANDOM_INIT
public static final String RANDOM_INIT
- See Also:
- Constant Field Values
TOTAL_ITERATIONS
public static final String TOTAL_ITERATIONS
- See Also:
- Constant Field Values
TOTAL_TRAINING_VECTORS
public static final String TOTAL_TRAINING_VECTORS
- See Also:
- Constant Field Values
VECTORS_NORMALISED
public static final String VECTORS_NORMALISED
- See Also:
- Constant Field Values
QUANT_ERROR_MAP
public static final String QUANT_ERROR_MAP
- See Also:
- Constant Field Values
QUANT_ERROR_VECTOR
public static final String QUANT_ERROR_VECTOR
- See Also:
- Constant Field Values
URL_TRAINING_VECTOR
public static final String URL_TRAINING_VECTOR
- See Also:
- Constant Field Values
URL_TRAINING_VECTOR_DESCRIPTION
public static final String URL_TRAINING_VECTOR_DESCRIPTION
- See Also:
- Constant Field Values
URL_WEIGHT_VECTOR
public static final String URL_WEIGHT_VECTOR
- See Also:
- Constant Field Values
URL_QUANT_ERROR_MAP
public static final String URL_QUANT_ERROR_MAP
- See Also:
- Constant Field Values
URL_MAPPED_INPUT_VECTOR
public static final String URL_MAPPED_INPUT_VECTOR
- See Also:
- Constant Field Values
URL_MAPPED_INPUT_VECTOR_DESCRIPTION
public static final String URL_MAPPED_INPUT_VECTOR_DESCRIPTION
- See Also:
- Constant Field Values
URL_UNIT_DESCRIPTION
public static final String URL_UNIT_DESCRIPTION
- See Also:
- Constant Field Values
URL_TEMPLATE_VECTOR
public static final String URL_TEMPLATE_VECTOR
- See Also:
- Constant Field Values
URL_LABELS
public static final String URL_LABELS
- See Also:
- Constant Field Values
URL_DATA_WINNER_MAPPING
public static final String URL_DATA_WINNER_MAPPING
- See Also:
- Constant Field Values
URL_CLASS_INFO
public static final String URL_CLASS_INFO
- See Also:
- Constant Field Values
METRIC
public static final String METRIC
- See Also:
- Constant Field Values
LAYER_REVISION
public static final String LAYER_REVISION
- See Also:
- Constant Field Values
DESCRIPTION
public static final String DESCRIPTION
- See Also:
- Constant Field Values
AVAILABLE_VIS
public static final String AVAILABLE_VIS
- See Also:
- Constant Field Values
DATA_TYPE
public static final String DATA_TYPE
- See Also:
- Constant Field Values
DATA_DIM
public static final String DATA_DIM
- See Also:
- Constant Field Values
ADAPTIVE_COORDINATES_THRESHOLD
public static final String ADAPTIVE_COORDINATES_THRESHOLD
- See Also:
- Constant Field Values
prop
Hashtable<String,String> prop
propertyNames
private static final String[] propertyNames
- All properties names, in the order as they will be written to the Map Description File.
integerFields
private static final String[] integerFields
doubleFields
private static final String[] doubleFields
doubleArrrayFields
private static final String[] doubleArrrayFields
longFields
private static final String[] longFields
dateFields
private static final String[] dateFields
booleanFields
private static final String[] booleanFields
simpleDateFormat
private static final SimpleDateFormat simpleDateFormat
SOMLibMapDescription
public SOMLibMapDescription(String fileName)
throws IOException
- Throws:
IOException
SOMLibMapDescription
public SOMLibMapDescription()
readMapDescriptionFile
public void readMapDescriptionFile(String fileName)
throws IOException
- Throws:
IOException
getProperty
public String getProperty(String key)
setProperty
public void setProperty(String propertyName,
String value)
throws SOMToolboxException
- Throws:
SOMToolboxException
setProperty
public void setProperty(String propertyName,
int value)
throws SOMToolboxException
- Throws:
SOMToolboxException
setProperty
public void setProperty(String propertyName,
double value)
throws SOMToolboxException
- Throws:
SOMToolboxException
setProperty
public void setProperty(String propertyName,
double[] value)
throws SOMToolboxException
- Throws:
SOMToolboxException
setProperty
public void setProperty(String propertyName,
boolean value)
throws SOMToolboxException
- Throws:
SOMToolboxException
setProperty
public void setProperty(String propertyName,
long value)
throws SOMToolboxException
- Throws:
SOMToolboxException
setProperty
public void setProperty(String propertyName,
Date value)
throws SOMToolboxException
- Throws:
SOMToolboxException
setProperty
private void setProperty(String propertyName,
String value,
String[] validPropertyNames,
Class<?> type)
throws SOMToolboxException
- Throws:
SOMToolboxException
writeMapDescriptionFile
public void writeMapDescriptionFile(String fileName)
throws IOException
- Throws:
IOException
main
public static void main(String[] args)