Package uk.ac.starlink.ttools.scheme
Class AttractorStarTable
- java.lang.Object
-
- uk.ac.starlink.table.AbstractStarTable
-
- uk.ac.starlink.ttools.scheme.AttractorStarTable
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,uk.ac.starlink.table.StarTable
public class AttractorStarTable extends uk.ac.starlink.table.AbstractStarTable
StarTable implementation based on an Attractor.- Since:
- 20 Jul 2020
- Author:
- Mark Taylor
-
-
Field Summary
Fields Modifier and Type Field Description static uk.ac.starlink.table.ValueInfo
ATTRACTOR_INFO
static uk.ac.starlink.table.ValueInfo
FILL_INFO
-
Constructor Summary
Constructors Constructor Description AttractorStarTable(AttractorFamily.Attractor att, long nrow)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnCount()
uk.ac.starlink.table.ColumnInfo
getColumnInfo(int icol)
long
getRowCount()
uk.ac.starlink.table.RowSequence
getRowSequence()
static void
main(java.lang.String[] args)
Writes some example attractor tables to stdout.static void
writeFiles(AttractorFamily family, int nrow, int nfile)
Utility/example method that can generate example tables corresponding to interesting (strange) attractors.-
Methods inherited from class uk.ac.starlink.table.AbstractStarTable
checkedLongToInt, close, getCell, getColumnAuxDataInfos, getName, getParameters, getRow, getRowAccess, getRowSplittable, getURL, isRandom, setName, setParameters, setURL
-
-
-
-
Constructor Detail
-
AttractorStarTable
public AttractorStarTable(AttractorFamily.Attractor att, long nrow)
Constructor.- Parameters:
att
- attractornrow
- row count
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfaceuk.ac.starlink.table.StarTable
- Specified by:
getColumnCount
in classuk.ac.starlink.table.AbstractStarTable
-
getRowCount
public long getRowCount()
- Specified by:
getRowCount
in interfaceuk.ac.starlink.table.StarTable
- Specified by:
getRowCount
in classuk.ac.starlink.table.AbstractStarTable
-
getColumnInfo
public uk.ac.starlink.table.ColumnInfo getColumnInfo(int icol)
- Specified by:
getColumnInfo
in interfaceuk.ac.starlink.table.StarTable
- Specified by:
getColumnInfo
in classuk.ac.starlink.table.AbstractStarTable
-
getRowSequence
public uk.ac.starlink.table.RowSequence getRowSequence()
- Specified by:
getRowSequence
in interfaceuk.ac.starlink.table.StarTable
- Specified by:
getRowSequence
in classuk.ac.starlink.table.AbstractStarTable
-
writeFiles
public static void writeFiles(AttractorFamily family, int nrow, int nfile) throws java.io.IOException
Utility/example method that can generate example tables corresponding to interesting (strange) attractors. There is informative output to stdout, and the tables are written to the current directory.- Parameters:
family
- attractor familynrow
- numer of rows in each output tablenfile
- number of output table files to write- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
Writes some example attractor tables to stdout. Use -h for usage.- Throws:
java.io.IOException
-
-