sonification.dataimport.visbards_resourcetoolkit.repository
Interface Repository

All Known Subinterfaces:
RepositoryWritable

public interface Repository


Method Summary
 double computeApproximateDelta(Category cat, int startrow, int endrow)
          Returns the approximate delta for this category.
 Range computeDataRange(Category cat, int startrow, int endrow)
          Returns the range of values stored for the specified category for the specified rows.
 Range computeRowRange(Category time, Range rng)
          Converts the timeRange to rowRange relative to this dataset.
 java.lang.String getName()
          Returns the name of this repository.
 int getNumRows()
          Returns the number of rows in the repository.
 Resource getResource()
          Returns the resource used to populate this repository.
 float getScalar(Category cat, int row)
          Compute a scalar for the following cateogory for the specified row using the data from this repository.
 double getScalarDouble(Category cat, int row)
          Compute a scalar for the following cateogory for the specified row using the data from this repository.
 Category[] getStoredCategories()
          Returns the categories for which the repository has data.
 Category getStoredCategory(java.lang.String type)
          Returns the category referenced by name stored in this repository.
 float[] getVector(Category cat, int row)
          Compute a vector for the following category for the specified row using the data from the repository.
 double[] getVectorDouble(Category cat, int row)
          Compute a vector for the following category for the specified row using the data from the repository.
 boolean isComputable(Category cat)
          Returns true if this category can be computed using data stored in this repository.
 void print()
          Prints the repository to stdout.
 

Method Detail

getStoredCategories

Category[] getStoredCategories()
Returns the categories for which the repository has data.


getStoredCategory

Category getStoredCategory(java.lang.String type)
Returns the category referenced by name stored in this repository. If the requested category is not present returns null.


getResource

Resource getResource()
Returns the resource used to populate this repository.


getNumRows

int getNumRows()
Returns the number of rows in the repository.


getScalar

float getScalar(Category cat,
                int row)
Compute a scalar for the following cateogory for the specified row using the data from this repository.


getVector

float[] getVector(Category cat,
                  int row)
Compute a vector for the following category for the specified row using the data from the repository.


getScalarDouble

double getScalarDouble(Category cat,
                       int row)
Compute a scalar for the following cateogory for the specified row using the data from this repository.


getVectorDouble

double[] getVectorDouble(Category cat,
                         int row)
Compute a vector for the following category for the specified row using the data from the repository.


isComputable

boolean isComputable(Category cat)
Returns true if this category can be computed using data stored in this repository.


computeRowRange

Range computeRowRange(Category time,
                      Range rng)
Converts the timeRange to rowRange relative to this dataset.


computeDataRange

Range computeDataRange(Category cat,
                       int startrow,
                       int endrow)
Returns the range of values stored for the specified category for the specified rows.


computeApproximateDelta

double computeApproximateDelta(Category cat,
                               int startrow,
                               int endrow)
Returns the approximate delta for this category. (The average change in the value) WARNING ONLY SCALAR CATEOGRY APPLICABLE


getName

java.lang.String getName()
Returns the name of this repository.


print

void print()
Prints the repository to stdout.