ChainedTuple
hep.aida.ref.tuple

Class ChainedTuple

    • Constructor Detail

      • ChainedTuple

        public ChainedTuple(String name,            String title,            ITuple[] set)
        Tuple constructor.
        Parameters:
        name - the Tuple's name
        title - the Tuple's title
        set - Array of ITuples to be chained
    • Method Detail

      • columns

        public int columns()
        Get the number of columns in the Tuple.
        Specified by:
        columns in interface ITuple
        Specified by:
        columns in interface FTuple
        Specified by:
        columns in class AbstractTuple
        Returns:
        the number of columns in the Tuple
      • columnMin

        public double columnMin(int column)
        Get the minimum value of a column.
        Specified by:
        columnMin in interface ITuple
        Specified by:
        columnMin in class AbstractTuple
        Parameters:
        column - The column's index.
        Returns:
        The minimum value of the column. If the minimum cannot be calculated Double.NaN is returned.
      • columnMax

        public double columnMax(int column)
        Get the maximum value of a column.
        Specified by:
        columnMax in interface ITuple
        Specified by:
        columnMax in class AbstractTuple
        Parameters:
        column - The column's index.
        Returns:
        The maximum value of the column. If the maximum cannot be calculated Double.NaN is returned.
      • columnMean

        public double columnMean(int column)
        Get the mean value of a column.
        Specified by:
        columnMean in interface ITuple
        Specified by:
        columnMean in class AbstractTuple
        Parameters:
        column - The column's index.
        Returns:
        The mean value of the column. If the mean cannot be calculated Double.NaN is returned.
      • columnRms

        public double columnRms(int column)
        Get the rms of a column.
        Specified by:
        columnRms in interface ITuple
        Specified by:
        columnRms in class AbstractTuple
        Parameters:
        column - The column's index.
        Returns:
        The rms of the column. If the rms cannot be calculated Double.NaN is returned.
      • rows

        public int rows()
        The number of rows currently in the ntuple.
        Specified by:
        rows in interface ITuple
        Specified by:
        rows in interface FTuple
        Specified by:
        rows in class AbstractTuple
        Returns:
        -1 if cannot be determined.
      • getRow

        public int getRow()
        Get the current row.
        Overrides:
        getRow in class AbstractTuple
        Returns:
        The current row;
      • findTuple

        public ITuple findTuple(int column)
        Description copied from interface: ITuple
        Return method for tuple variables of type ITuple for a given column. This method can be used in order to fill a tuple variable in the master tuple.
        Specified by:
        findTuple in interface ITuple
        Specified by:
        findTuple in class AbstractTuple
        Parameters:
        column - The column's index.
        Returns:
        The ITuple representing the structure of this column.
      • setRow

        public void setRow(int row)
        Set the current row.
        Specified by:
        setRow in interface ITuple
        Overrides:
        setRow in class AbstractTuple
        Parameters:
        row - The current row;
      • start

        public void start()
        Positions the read cursor immediately before the first row.
        Specified by:
        start in interface ITuple
        Overrides:
        start in class AbstractTuple
      • skip

        public void skip(int rows)
        Skips rows.
        Specified by:
        skip in interface ITuple
        Overrides:
        skip in class AbstractTuple
        Parameters:
        rows - number of rows to skip, greater than 0.
      • next

        public boolean next()
        Positions the cursor at the next row.
        Specified by:
        next in interface ITuple
        Overrides:
        next in class AbstractTuple
        Returns:
        false if there is no next row.
      • columnDefaultValue

        public Object columnDefaultValue(int column)
        Description copied from interface: ITuple
        Get the column default. For primitive types (int, double, ...) their respective class is returned (Int, Double, ...)
        Specified by:
        columnDefaultValue in interface ITuple
        Overrides:
        columnDefaultValue in class AbstractTuple
        Parameters:
        column - The column's index.
        Returns:
        The column's default.

SCaVis 2.0 © jWork.ORG