Interface DataBank

All Known Implementing Classes:
BasicDataBank, BosDataBank, EvioDataBank, Hipo3DataBank, HipoDataBank

public interface DataBank
  • Method Details

    • getColumnList

      String[] getColumnList()
      Get the names of the columns in the bank. The name is used in the calls getInt() and getDouble() and other calls for get the arrays.
      Returns:
      array of strings with names.
    • getDescriptor

      DataDescriptor getDescriptor()
      Returns the descriptor of the bank, that contains names of the variables and their types.
      Returns:
      bank descriptor
    • getDouble

      double[] getDouble(String path)
      Returns a native array of doubles for given name.
      Parameters:
      path - - name of the column.
      Returns:
      double[] array with values.
    • getDouble

      double getDouble(String path, int index)
    • setDouble

      void setDouble(String path, double[] arr)
      Adds array of doubles into the bank under the name.
      Parameters:
      path - - name of the array.
      arr - primitive type array of doubles.
    • setDouble

      void setDouble(String path, int row, double value)
    • appendDouble

      void appendDouble(String path, double[] arr)
      Appends an array to existing array with the same name. The resulting array will increase in size by arr.length.
      Parameters:
      path - name of the variable
      arr - primitive type array of doubles.
    • getFloat

      float[] getFloat(String path)
    • getFloat

      float getFloat(String path, int index)
    • setFloat

      void setFloat(String path, float[] arr)
    • setFloat

      void setFloat(String path, int row, float value)
    • appendFloat

      void appendFloat(String path, float[] arr)
    • getInt

      int[] getInt(String path)
    • getInt

      int getInt(String path, int index)
    • setInt

      void setInt(String path, int[] arr)
    • setInt

      void setInt(String path, int row, int value)
    • appendInt

      void appendInt(String path, int[] arr)
    • getShort

      short[] getShort(String path)
    • getShort

      short getShort(String path, int index)
    • setShort

      void setShort(String path, short[] arr)
    • setShort

      void setShort(String path, int row, short value)
    • appendShort

      void appendShort(String path, short[] arr)
    • getByte

      byte[] getByte(String path)
    • getByte

      byte getByte(String path, int index)
    • setByte

      void setByte(String path, byte[] arr)
    • setByte

      void setByte(String path, int row, byte value)
    • appendByte

      void appendByte(String path, byte[] arr)
    • getLong

      long[] getLong(String path)
    • getLong

      long getLong(String path, int index)
    • setLong

      void setLong(String path, long[] arr)
    • setLong

      void setLong(String path, int row, long value)
    • appendLong

      void appendLong(String path, long[] arr)
    • columns

      int columns()
      Returns the number of columns in the bank. columns are number of variables.
      Returns:
      number of columns
    • rows

      int rows()
      returns the number of rows in the bank, assuming all columns have the same length.
      Returns:
      number of rows
    • show

      void show()
      Prints the content of the bank on the screen. The implementation of printout is left up to the particular implementation of the class.
    • reset

      void reset()
      Clears the content of the bank. all columns are removed.
    • allocate

      void allocate(int rows)
      Allocates all variables for the the bank. the names are taken from the descriptor object.
      Parameters:
      rows - number of rows for each column to allocate
    • getTableModel

      TableModel getTableModel(String mask)
      Returns a table model for displaying the bank information
      Parameters:
      mask -
      Returns: