Class LoopStarTable

  • All Implemented Interfaces:
    uk.ac.starlink.table.StarTable

    public class LoopStarTable
    extends uk.ac.starlink.table.ColumnStarTable
    Single-column table whose column values are the values of a loop iterator variable.
    Since:
    6 Nov 2013
    Author:
    Mark Taylor
    • Field Summary

      • Fields inherited from class uk.ac.starlink.table.ColumnStarTable

        columns_
    • Constructor Summary

      Constructors 
      Constructor Description
      LoopStarTable​(java.lang.String colName, double start, double end, double step, java.lang.Boolean isInteger)
      Constructs a loop table from values like the initialisers of a for loop.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getRowCount()  
      • Methods inherited from class uk.ac.starlink.table.ColumnStarTable

        addColumn, getCell, getColumnCount, getColumnData, getColumnInfo, makeTableWithRows, setCell, setColumn
      • Methods inherited from class uk.ac.starlink.table.RandomStarTable

        getRowSequence, isRandom
      • Methods inherited from class uk.ac.starlink.table.AbstractStarTable

        checkedLongToInt, getColumnAuxDataInfos, getName, getParameterByName, getParameters, getRow, getURL, setName, setParameter, setParameters, setURL
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoopStarTable

        public LoopStarTable​(java.lang.String colName,
                             double start,
                             double end,
                             double step,
                             java.lang.Boolean isInteger)
        Constructs a loop table from values like the initialisers of a for loop. The isInteger parameter may be set True for an Integer column, False for a Double column, and null if the type is to be determined from the input values (integer if all are integers).
        Parameters:
        colName - name of the single column name in the table
        start - initial (row 0) value of variable
        end - value which variable will not exceed
        step - per-row increment of variable
    • Method Detail

      • getRowCount

        public long getRowCount()
        Specified by:
        getRowCount in interface uk.ac.starlink.table.StarTable
        Specified by:
        getRowCount in class uk.ac.starlink.table.ColumnStarTable