at.tuwien.ifs.somtoolbox.data
Class SOMLibDataInformation
java.lang.Object
at.tuwien.ifs.somtoolbox.data.SOMLibDataInformation
public class SOMLibDataInformation
- extends Object
This class provides more detailed information about the InputData
input vectors. For example, if the input
vectors have IDs as labels, this file can specify descriptive labels.
Created on Nov 22, 2004
- Version:
- $Id: SOMLibDataInformation.java 3583 2010-05-21 10:07:41Z mayer $
- Author:
- Michael Dittenbach
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataInformationFileName
private String dataInformationFileName
baseDir
private String baseDir
numData
private int numData
dataDisplayNames
private Hashtable<String,String> dataDisplayNames
dataLocations
private Hashtable<String,String> dataLocations
SOMLibDataInformation
public SOMLibDataInformation()
SOMLibDataInformation
public SOMLibDataInformation(String fileName)
throws FileNotFoundException,
SOMToolboxException
- Throws:
FileNotFoundException
SOMToolboxException
addItem
public void addItem(String label,
String displayName,
String location)
readDataInformationFileHeader
private void readDataInformationFileHeader(BufferedReader br)
throws IOException
- Throws:
IOException
writeToFile
public void writeToFile(String fileName)
throws IOException,
SOMLibFileFormatException
- Writes the class information to a file.
- Throws:
IOException
SOMLibFileFormatException
getBaseDir
public String getBaseDir()
getDataDisplayName
public String getDataDisplayName(String name)
getDataLocation
public String getDataLocation(String name)
main
public static void main(String[] args)
- Method for standalone execution to test a data information file.