sonification.dataimport
Class DataImportVisbard

java.lang.Object
  extended by sonification.dataimport.DataImportVisbard
All Implemented Interfaces:
DataImport

public class DataImportVisbard
extends java.lang.Object
implements DataImport

This class serves as an interface to the ViSBARD data retrieval module.


Constructor Summary
DataImportVisbard()
          Creates a new instance of class DataImportVisbard
 
Method Summary
 java.lang.String[] getAllFileNames()
          Function returns a string array with the names of all loaded files.
 java.lang.String[] getAllVariableNames()
          Function returns a string array with the names of all loaded variables.
 double[][] getAllVariablesFor(java.lang.String sCategory)
          Function returns all the values for a specific variable name.
 int getRowAmount()
          Function returns the amount of all rows which are in a datasource.
 java.lang.String getUnit(java.lang.String sCategory)
          Function returns the unit of a specific variable as a string.
 void init()
          Initializes all member variables of class "DataImportVisbard"
 boolean isTimeVariableAvailable()
          Function checks if there is a variable for the Time available in the datasources.
static java.lang.Object readObjectAs(java.lang.String objname)
          testfunction not used
static void saveObjectAs(java.lang.Object obj, java.lang.String objname)
          testfunction not used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataImportVisbard

public DataImportVisbard()
                  throws java.lang.Exception
Creates a new instance of class DataImportVisbard

Throws:
java.lang.Exception
Method Detail

init

public void init()
Initializes all member variables of class "DataImportVisbard"

Specified by:
init in interface DataImport

getAllFileNames

public java.lang.String[] getAllFileNames()
Function returns a string array with the names of all loaded files.

Specified by:
getAllFileNames in interface DataImport
Returns:
String Array

getAllVariableNames

public java.lang.String[] getAllVariableNames()
Function returns a string array with the names of all loaded variables.

Specified by:
getAllVariableNames in interface DataImport
Returns:
String array of loaded variables.

getRowAmount

public int getRowAmount()
Function returns the amount of all rows which are in a datasource.

Specified by:
getRowAmount in interface DataImport
Returns:
int

getUnit

public java.lang.String getUnit(java.lang.String sCategory)
Function returns the unit of a specific variable as a string.

Specified by:
getUnit in interface DataImport
Parameters:
sCategory - String of variable name.
Returns:
string

isTimeVariableAvailable

public boolean isTimeVariableAvailable()
Function checks if there is a variable for the Time available in the datasources.

Specified by:
isTimeVariableAvailable in interface DataImport
Returns:
true - Time variable available false - Time variable not available

getAllVariablesFor

public double[][] getAllVariablesFor(java.lang.String sCategory)
Function returns all the values for a specific variable name. It destinguishes between scalar and vector data with the size of the arrays first dimension.

Specified by:
getAllVariablesFor in interface DataImport
Parameters:
sCategory - Specific variable name
Returns:
Array of all the values for a specific variable name. The first dimension comprises the coordinate(X,Y,Z) of the value if it is the variable data is originally a vector.

saveObjectAs

public static void saveObjectAs(java.lang.Object obj,
                                java.lang.String objname)
testfunction not used


readObjectAs

public static java.lang.Object readObjectAs(java.lang.String objname)
testfunction not used