public final class DefaultTableDataSet extends AbstractTableDataSet
AbstractTableDataSet.XSliceDataSet, AbstractTableDataSet.YSliceDataSet
AbstractDataSet.ViewDataSet
tableProperties
PROPERTY_CACHE_TAG, PROPERTY_FORMATTER, PROPERTY_OPERATION, PROPERTY_PLANE_PEAKS, PROPERTY_PLANE_WEIGHTS, PROPERTY_RENDERER, PROPERTY_SIZE_BYTES, PROPERTY_SOURCE, PROPERTY_SUMMARY, PROPERTY_TITLE, PROPERTY_X_CACHE_RES, PROPERTY_X_CACHE_RNG, PROPERTY_X_FORMAT, PROPERTY_X_LABEL, PROPERTY_X_MONOTONIC, PROPERTY_X_RANGE, PROPERTY_X_SUMMARY, PROPERTY_X_TAG_WIDTH, PROPERTY_X_VALID_MAX, PROPERTY_X_VALID_MIN, PROPERTY_Y_CACHE_RES, PROPERTY_Y_CACHE_RNG, PROPERTY_Y_FILL, PROPERTY_Y_FORMAT, PROPERTY_Y_LABEL, PROPERTY_Y_MONOTONIC, PROPERTY_Y_RANGE, PROPERTY_Y_SCALETYPE, PROPERTY_Y_SUMMARY, PROPERTY_Y_TAG_WIDTH, PROPERTY_Y_VALID_MAX, PROPERTY_Y_VALID_MIN, PROPERTY_Z_FILL, PROPERTY_Z_FORMAT, PROPERTY_Z_LABEL, PROPERTY_Z_RANGE, PROPERTY_Z_SCALETYPE, PROPERTY_Z_SUMMARY, PROPERTY_Z_VALID_MAX, PROPERTY_Z_VALID_MIN
Constructor and Description |
---|
DefaultTableDataSet(double[] xTags,
Units xUnits,
double[][] yTags,
Units yUnits,
double[][][] zValues,
Units zUnits,
java.util.Map zValuesMap,
java.util.Map zUnitsMap,
java.util.Map properties)
Creates a new instance of DefaultTableDataSet for tables where the
table geometry changes, and the DataSet contains multiple planes.
|
DefaultTableDataSet(double[] xTags,
Units xUnits,
double[] yTags,
Units yUnits,
double[][] zValues,
Units zUnits,
java.util.Map properties)
Creates a DefaultTableDataSet when the table geometry changes.
|
Modifier and Type | Method and Description |
---|---|
static DefaultTableDataSet |
createSimple(double[] xTags,
double[] yTags,
double[][] zValues) |
void |
dump(java.io.PrintStream out) |
Datum |
getDatum(int i,
int j)
Returns the Z value for the given indices into the x and y tags as a
Datum . |
double |
getDouble(int i,
int j,
Units units)
Returns the Z value for the given indices into the x and y tags as a
double with the given units. |
double[] |
getDoubleScan(int i,
Units units) |
int |
getInt(int i,
int j,
Units units)
Returns the Z value for the given indices into the x and y tags as a
int with the given units. |
DataSet |
getPlanarView(java.lang.String planeID)
Returns a
DataSet with the specified view as the primary
view. |
java.lang.String[] |
getPlaneIds()
Returns a list of auxiliary planes (e.g.
|
DatumVector |
getScan(int i) |
int |
getYLength(int table)
Returns the number of y tags in the specified table for this data set.
|
Datum |
getYTagDatum(int table,
int j)
Returns the value of the y tag at the given index j as a
Datum . |
double |
getYTagDouble(int table,
int j,
Units units)
Returns the value of the y tag at the given index j as a
double in the given units. |
int |
getYTagInt(int table,
int j,
Units units)
Returns the value of the y tag at the given index j as an
int in the given units. |
DatumVector |
getYTags(int table)
Returns the yTags for this data set as a
DatumVector |
void |
printDebugInfo(java.io.PrintStream out) |
int |
tableCount()
Returns the number of tables in this data set
|
int |
tableEnd(int table)
Returns the index after the last x tag index of the specified table
|
int |
tableOfIndex(int i)
Returns the table number that the specified index is in.
|
int |
tableStart(int table)
Returns the first x tag index of the specified table.
|
AbstractDataSet |
toQDataSet()
this is a highly-interleaved table, and if we sort it out and create a
optimal QDataSet, it's better.
|
java.lang.String |
toString() |
getProperty, getXSlice, getYSlice, getZUnits
getProperties, getProperty, getXLength, getXTagDatum, getXTagDouble, getXTagInt, getXUnits, getYUnits
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProperties, getProperty, getXLength, getXTagDatum, getXTagDouble, getXTagInt, getXUnits, getYUnits
public DefaultTableDataSet(double[] xTags, Units xUnits, double[][] yTags, Units yUnits, double[][][] zValues, Units zUnits, java.util.Map zValuesMap, java.util.Map zUnitsMap, java.util.Map properties)
xTags
- the xtags identifying the location of each measurement, often time tags,xUnits
- the units for the xtags, e.g. Units.us2000.yTags
- the ytags identifying the location of each measurement, for example frequency.yUnits
- the units for the ytags, e.g. Units.hertz.zValues
- the z values.zUnits
- the units of the z values.zValuesMap
- ???zUnitsMap
- ???properties
- properties for the dataset, such as DataSet.PROPERTY_Z_LABEL.public static DefaultTableDataSet createSimple(double[] xTags, double[] yTags, double[][] zValues)
public Datum getDatum(int i, int j)
TableDataSet
Datum
.i
- index of the x tag for the requested value.j
- index of the y tag for the requested value.Datum
public DatumVector getScan(int i)
public double getDouble(int i, int j, Units units)
TableDataSet
double
with the given units.i
- index of the y tag for the requested value.j
- index of the x tag for the requested value.units
- the units the returned value should be converted to.double
.public double[] getDoubleScan(int i, Units units)
public int getInt(int i, int j, Units units)
TableDataSet
int
with the given units.i
- index of the x tag for the requested value.j
- index of the y tag for the requested value.units
- the units the returned value should be converted to.int
.public DataSet getPlanarView(java.lang.String planeID)
DataSet
DataSet
with the specified view as the primary
view.planeID
- the String
id of the requested plane.DataSet
public java.lang.String[] getPlaneIds()
DataSet
public AbstractDataSet toQDataSet()
public int getYLength(int table)
TableDataSet
table
- index of the tablepublic Datum getYTagDatum(int table, int j)
TableDataSet
Datum
.table
- the table numberj
- the index of the requested y tagDatum
.public double getYTagDouble(int table, int j, Units units)
TableDataSet
double
in the given units. YTags must be
monotonically increasing with j.table
- the table numberj
- the index of the requested y tagunits
- the units of the returned valuedouble
.public int getYTagInt(int table, int j, Units units)
TableDataSet
int
in the given units. YTags must be
monotonically increasing with j.j
- the index of the requested y tagunits
- the units of the returned valueint
.public DatumVector getYTags(int table)
TableDataSet
DatumVector
table
- the table numberDatumVector
public int tableCount()
TableDataSet
public int tableEnd(int table)
TableDataSet
table
- the index of the tablepublic int tableOfIndex(int i)
TableDataSet
i
- x tag indexpublic int tableStart(int table)
TableDataSet
table
- the index of the table.public void dump(java.io.PrintStream out)
public java.lang.String toString()
toString
in class AbstractTableDataSet
public void printDebugInfo(java.io.PrintStream out)