at.tuwien.ifs.somtoolbox.data
Class SOMLibDataInformation

java.lang.Object
  extended by 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

Field Summary
private  String baseDir
           
private  Hashtable<String,String> dataDisplayNames
           
private  String dataInformationFileName
           
private  Hashtable<String,String> dataLocations
           
private  int numData
           
 
Constructor Summary
SOMLibDataInformation()
           
SOMLibDataInformation(String fileName)
           
 
Method Summary
 void addItem(String label, String displayName, String location)
           
 String getBaseDir()
           
 String getDataDisplayName(String name)
           
 String getDataLocation(String name)
           
static void main(String[] args)
          Method for standalone execution to test a data information file.
private  void readDataInformationFileHeader(BufferedReader br)
           
 void writeToFile(String fileName)
          Writes the class information to a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataInformationFileName

private String dataInformationFileName

baseDir

private String baseDir

numData

private int numData

dataDisplayNames

private Hashtable<String,String> dataDisplayNames

dataLocations

private Hashtable<String,String> dataLocations
Constructor Detail

SOMLibDataInformation

public SOMLibDataInformation()

SOMLibDataInformation

public SOMLibDataInformation(String fileName)
                      throws FileNotFoundException,
                             SOMToolboxException
Throws:
FileNotFoundException
SOMToolboxException
Method Detail

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.