|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.das2.dataset.AbstractDataSet
org.das2.dataset.AbstractTableDataSet
org.das2.dataset.DefaultTableDataSet
public final class DefaultTableDataSet
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.das2.dataset.AbstractTableDataSet |
|---|
AbstractTableDataSet.XSliceDataSet, AbstractTableDataSet.YSliceDataSet |
| Nested classes/interfaces inherited from class org.das2.dataset.AbstractDataSet |
|---|
AbstractDataSet.ViewDataSet |
| Field Summary |
|---|
| Fields inherited from class org.das2.dataset.AbstractTableDataSet |
|---|
tableProperties |
| Fields inherited from interface org.das2.dataset.DataSet |
|---|
PROPERTY_CACHE_TAG, PROPERTY_FORMATTER, PROPERTY_PLANE_PEAKS, PROPERTY_PLANE_WEIGHTS, PROPERTY_RENDERER, PROPERTY_SIZE_BYTES, PROPERTY_X_LABEL, PROPERTY_X_MONOTONIC, PROPERTY_X_RANGE, PROPERTY_X_TAG_WIDTH, PROPERTY_Y_LABEL, PROPERTY_Y_RANGE, PROPERTY_Y_SCALETYPE, PROPERTY_Y_TAG_WIDTH, PROPERTY_Z_LABEL, PROPERTY_Z_RANGE, PROPERTY_Z_SCALETYPE |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 auxillary 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. |
java.lang.String |
toString()
|
| Methods inherited from class org.das2.dataset.AbstractTableDataSet |
|---|
getProperty, getXSlice, getYSlice, getZUnits |
| Methods inherited from class org.das2.dataset.AbstractDataSet |
|---|
getProperties, getProperty, getXLength, getXTagDatum, getXTagDouble, getXTagInt, getXUnits, getYUnits |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.das2.dataset.DataSet |
|---|
getProperties, getProperty, getXLength, getXTagDatum, getXTagDouble, getXTagInt, getXUnits, getYUnits |
| Constructor Detail |
|---|
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)
public DefaultTableDataSet(double[] xTags,
Units xUnits,
double[] yTags,
Units yUnits,
double[][] zValues,
Units zUnits,
java.util.Map properties)
| Method Detail |
|---|
public static DefaultTableDataSet createSimple(double[] xTags,
double[] yTags,
double[][] zValues)
public Datum getDatum(int i,
int j)
TableDataSetDatum.
i - index of the x tag for the requested value.j - index of the y tag for the requested value.
Datumpublic DatumVector getScan(int i)
public double getDouble(int i,
int j,
Units units)
TableDataSetdouble 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 coverted to.
double.
public double[] getDoubleScan(int i,
Units units)
public int getInt(int i,
int j,
Units units)
TableDataSetint 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 coverted to.
int.public DataSet getPlanarView(java.lang.String planeID)
DataSetDataSet with the specified view as the primary
view.
planeID - the String id of the requested plane.
DataSetpublic java.lang.String[] getPlaneIds()
DataSet
public int getYLength(int table)
TableDataSet
table - index of the table
public Datum getYTagDatum(int table,
int j)
TableDataSetDatum.
j - the index of the requested y tag
- Returns:
- the value of the y tag at the given index j as a
Datum.
public double getYTagDouble(int table,
int j,
Units units)
TableDataSetdouble in the given units. YTags must be
monotonically increasing with j.
j - the index of the requested y tagunits - the units of the returned value
double.
public int getYTagInt(int table,
int j,
Units units)
TableDataSetint in the given units. YTags must be
monotonically increasing with j.
j - the index of the requested y tagunits - the units of the returned value
- Returns:
- the value of the y tag at the given index j as an
int.
public DatumVector getYTags(int table)
TableDataSetDatumVector
DatumVectorpublic int tableCount()
TableDataSet
public int tableEnd(int table)
TableDataSet
table - the index of the table
public int tableOfIndex(int i)
TableDataSet
i - x tag index
public 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 AbstractTableDataSetpublic void printDebugInfo(java.io.PrintStream out)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||