Class IVTable

java.lang.Object
org.yamcs.studio.data.vtype.IVTable
All Implemented Interfaces:
VTable, VType

public class IVTable extends Object implements VTable
  • Constructor Details

  • Method Details

    • getColumnCount

      public int getColumnCount()
      Description copied from interface: VTable
      The number of columns in the table.
      Specified by:
      getColumnCount in interface VTable
      Returns:
      the number of columns
    • getRowCount

      public int getRowCount()
      Description copied from interface: VTable
      The number of rows in the table.

      Currently, it is not clear whether all columns actually have the same number of rows, that is if all arrays have the same length. In the case of variable row, this will return the maximum row count, that is the length of the longest array/column.

      Specified by:
      getRowCount in interface VTable
      Returns:
      the number of rows
    • getColumnType

      public Class<?> getColumnType(int column)
      Description copied from interface: VTable
      The type of the elements in the column. The column array will be an array of the given type. For primitive types, this function will return the TYPE class (such as Double.TYPE, while VTable.getColumnData(int) will return a ListNumber.
      Specified by:
      getColumnType in interface VTable
      Parameters:
      column - the column index
      Returns:
      the type of this column
    • getColumnName

      public String getColumnName(int column)
      Description copied from interface: VTable
      The name of the given column.
      Specified by:
      getColumnName in interface VTable
      Parameters:
      column - the column index
      Returns:
      the name of the column
    • getColumnData

      public Object getColumnData(int column)
      Description copied from interface: VTable
      The data for the given column.

      The data is going to be a List in case of objects or a ListNumber in case of a numeric primitive.

      Specified by:
      getColumnData in interface VTable
      Parameters:
      column - the column index
      Returns:
      the data of the column
    • toString

      public String toString()
      Overrides:
      toString in class Object