Class D2SD<T extends sk.ipesoft.d2000.datatable.Table<T,​R,​sk.ipesoft.d2000.datatable.TableRowBean>,​R extends sk.ipesoft.d2000.datatable.TableRow<T,​R,​sk.ipesoft.d2000.datatable.TableRowBean>>

  • All Implemented Interfaces:
    java.lang.Comparable<D2Base<?>>

    public abstract class D2SD<T extends sk.ipesoft.d2000.datatable.Table<T,​R,​sk.ipesoft.d2000.datatable.TableRowBean>,​R extends sk.ipesoft.d2000.datatable.TableRow<T,​R,​sk.ipesoft.d2000.datatable.TableRowBean>>
    extends D2Base<sk.ipesoft.d2000.base.UnivalRecord<T,​R,​sk.ipesoft.d2000.datatable.TableRowBean>>
    • Method Detail

      • calcStruct

        public static void calcStruct​(D2SD<?,​?> structA,
                                      D2SD<?,​?> structB,
                                      D2SD<?,​?> structC,
                                      Operation operation,
                                      int fromRowA,
                                      int fromColA,
                                      int fromRowB,
                                      int fromColB,
                                      int fromRowC,
                                      int fromColC,
                                      int numRows,
                                      int numCols,
                                      boolean invalidIsZero)
        Calculates structC = structA (operation) structB on given rectangle
        Parameters:
        structA - first operand.
        structB - second operand
        structC - result
        operation - arithmetic operation to perform
        fromRowA - One-based index of the first row in first operand
        fromColA - One-based index of the first column in first operand
        fromRowB - One-based index of the first row in second operand
        fromColB - One-based index of the first column in second operand
        fromRowC - One-based index of the first row in result
        fromColC - One-based index of the first column in result
        numRows - number of rows
        numCols - number of columns
        invalidIsZero - interpret invalid value as valid zero value.
      • calcStruct

        public static void calcStruct​(D2SD<?,​?> structA,
                                      D2SD<?,​?> structB,
                                      D2SD<?,​?> structC,
                                      Operation operation,
                                      boolean invalidIsZero)
        Calculates structC = structA (operation) structB
        Parameters:
        structA -
        structB -
        structC -
        operation -
        invalidIsZero -
      • ada_get_structTypeId

        public abstract int ada_get_structTypeId()
      • asUnivalValue

        public sk.ipesoft.d2000.base.UnivalRecord<T,​R,​sk.ipesoft.d2000.datatable.TableRowBean> asUnivalValue()
        Overrides:
        asUnivalValue in class D2Base<sk.ipesoft.d2000.base.UnivalRecord<T extends sk.ipesoft.d2000.datatable.Table<T,​R,​sk.ipesoft.d2000.datatable.TableRowBean>,​R extends sk.ipesoft.d2000.datatable.TableRow<T,​R,​sk.ipesoft.d2000.datatable.TableRowBean>,​sk.ipesoft.d2000.datatable.TableRowBean>>
      • deleteRow

        public void deleteRow​(int row)
        Deletes given row from structure.
        Parameters:
        row - One-based index of row to delete
      • deleteRows

        public void deleteRows​(int fromRow,
                               int toRow)
        Deletes rows fromRow .. toRow from structure.
        Parameters:
        fromRow - One-based index of the first deleted row
        toRow - One-based index of the last (inclusive) deleted row
      • equals

        public boolean equals​(D2SD<?,​?> struct,
                              java.util.EnumSet<sk.ipesoft.d2000.base.Compare> compare,
                              int fromRowA,
                              int fromColA,
                              int fromRowB,
                              int fromColB,
                              int numRows,
                              int numCols)
                       throws ExceptionParameterError
        Compares given part of this structure with part of another local structure. Invalid values are equal.
        Parameters:
        struct - structure to compare with
        compare - compare parameters
        fromRowA - upper left corner of this structure
        fromColA - upper left corner of this structure
        fromRowB - upper left corner of struct
        fromColB - upper left corner of struct
        numRows - number of rows to compare
        numCols - number of columns to compare
        Returns:
        true if structures are equal according to compare parameter, else false
        Throws:
        ExceptionParameterError
      • equals

        public boolean equals​(D2SD<?,​?> struct,
                              java.util.EnumSet<sk.ipesoft.d2000.base.Compare> compare)
                       throws ExceptionParameterError
        Compares this structure with another local structure. Invalid values are equal. Structure struct must have at least the same number of row and columns as this structure.
        Parameters:
        struct - structure to compare with
        compare - compare parameters
        Returns:
        true if structures are equal according to compare parameter, else false
        Throws:
        ExceptionParameterError
      • getCell

        public final D2Base<?> getCell​(int row,
                                       int col)
      • getColCount

        public int getColCount()
      • getColName

        public java.lang.String getColName​(int col)
      • getRowAsD2SRow

        public final D2SRow getRowAsD2SRow​(int rowNr)
      • getRowCount

        public final int getRowCount()
      • getTable

        public T getTable()
      • getUnivalObjectReference

        public sk.ipesoft.d2000.base.UnivalObjectReference getUnivalObjectReference​(int row,
                                                                                    int col)
      • getValueType

        public sk.ipesoft.d2000.base.UnivalType getValueType()
        Overrides:
        getValueType in class D2Base<sk.ipesoft.d2000.base.UnivalRecord<T extends sk.ipesoft.d2000.datatable.Table<T,​R,​sk.ipesoft.d2000.datatable.TableRowBean>,​R extends sk.ipesoft.d2000.datatable.TableRow<T,​R,​sk.ipesoft.d2000.datatable.TableRowBean>,​sk.ipesoft.d2000.datatable.TableRowBean>>
      • redim

        @Deprecated
        public void redim​(int rowCount)
        Deprecated.
      • rowAvg

        public double rowAvg​(int row,
                             int fromCol,
                             int toCol)
        Parameters:
        row -
        fromCol -
        toCol -
        Returns:
        average value of given row using columns fromCol .. toCol
      • rowAvg

        public double rowAvg​(int row)
        Parameters:
        row -
        Returns:
        average value of given row
      • rowMax

        public double rowMax​(int row,
                             int fromCol,
                             int toCol)
        Parameters:
        row -
        fromCol -
        toCol -
        Returns:
        maximal value in given row using columns fromCol .. toCol
      • rowMax

        public double rowMax​(int row)
        Parameters:
        row -
        Returns:
        maximal value in given row
      • rowMin

        public double rowMin​(int row,
                             int fromCol,
                             int toCol)
        Parameters:
        row -
        fromCol -
        toCol -
        Returns:
        minimal value in given row using columns fromCol .. toCol
      • rowMin

        public double rowMin​(int row)
        Parameters:
        row -
        Returns:
        minimal value in given row
      • rowSum

        public double rowSum​(int row,
                             int fromCol,
                             int toCol)
        Parameters:
        row -
        fromCol -
        toCol -
        Returns:
        sum of given row using columns fromCol .. toCol
      • rowSum

        public double rowSum​(int row)
        Parameters:
        row -
        Returns:
        sum of given row
      • setCellObject

        public final void setCellObject​(int row,
                                        int col,
                                        D2Base<?> base)
      • setRowCount

        public void setRowCount​(int rowCount)
      • sortStruct

        public void sortStruct​(D2SD.IComparer c)
        Sorts rows of local structure using defined comparer
        Parameters:
        c -