|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Dataset
The interface for a dataset consisting of a two-dimensional matrix of float values. A dataset may also optionally contain one or more series of two-dimensional matrices. A dataset also has metadata associated with each row and column.
| Method Summary | |
|---|---|
int |
getColumnCount()
Returns the number of columns in the dataset. |
MetadataModel |
getColumnMetadata()
Gets the column metadata for this dataset. |
String |
getName()
Returns the name of this dataset. |
Object |
getObjectValue(int rowIndex,
int columnIndex,
int seriesIndex)
Returns the value at the given row and column for the given series. |
Object |
getProperty(Object key)
Returns the value to which the specified key is mapped, or null if this dataset does not contain the specified property. |
Collection<Object> |
getPropertyKeys()
Returns a collection of all the property keys contained in this dataset. |
int |
getRowCount()
Returns the number of rows in the dataset. |
MetadataModel |
getRowMetadata()
Gets the row metadata for this dataset. |
Class<?> |
getSeriesClass(int series)
Returns the most specific superclass for all the values in the series. |
int |
getSeriesCount()
Returns the number of matrix series, which is always at least 1 (the dataset itself). |
String |
getSeriesName(int series)
Returns the name for the given series. |
float |
getValue(int rowIndex,
int columnIndex)
Returns the value at the given row and column. |
float |
getValue(int rowIndex,
int columnIndex,
int seriesIndex)
Returns the value at the given row and column for the given series as a float. |
void |
setName(String name)
Sets the name of this dataset. |
void |
setProperty(Object key,
Object value)
Sets the property for the specified key. |
void |
setValue(int rowIndex,
int columnIndex,
float value)
Sets the value at the given row and column indices. |
| Method Detail |
|---|
int getColumnCount()
MetadataModel getColumnMetadata()
String getName()
Object getObjectValue(int rowIndex,
int columnIndex,
int seriesIndex)
rowIndex - the row indexcolumnIndex - the column indexseriesIndex - the series index
IndexOutOfBoundsException - if rowIndex or columnIndex are out of
range.Object getProperty(Object key)
key - the key
Collection<Object> getPropertyKeys()
int getRowCount()
MetadataModel getRowMetadata()
Class<?> getSeriesClass(int series)
series - the index of the series
int getSeriesCount()
String getSeriesName(int series)
series - the series
IndexOutOfBoundsException - if series is out of range
(index < 0 || index >=
getSeriesCount())
float getValue(int rowIndex,
int columnIndex)
rowIndex - the row index.columnIndex - the column index.
IndexOutOfBoundsException - if rowIndex or columnIndex are out of
range.
float getValue(int rowIndex,
int columnIndex,
int seriesIndex)
rowIndex - the row indexcolumnIndex - the column indexseriesIndex - the series index
IndexOutOfBoundsException - if rowIndex or columnIndex are out of rangevoid setName(String name)
name - The dataset name
UnsupportedOperationException - if the setName operation is not supported by this
Dataset
void setProperty(Object key,
Object value)
key - the keyvalue - the value
void setValue(int rowIndex,
int columnIndex,
float value)
rowIndex - the row indexcolumnIndex - the column indexvalue - the value
UnsupportedOperationException - if the setValue operation is not supported by this
Dataset
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||