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