|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.broadinstitute.genee.matrix.AbstractDataset
public abstract class AbstractDataset
Abstract dataset.
| Constructor Summary | |
|---|---|
AbstractDataset()
|
|
| Method Summary | |
|---|---|
int |
addSeries(String name,
Class<?> c)
|
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. |
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,
int seriesIndex)
Returns the value at the given row and column for the given series as a float. |
void |
removeSeries(int index)
|
void |
setName(String name)
Sets the name of this dataset. |
void |
setObjectValue(int rowIndex,
int columnIndex,
Object value,
int seriesIndex)
Sets the value at the given row and column. |
void |
setProperty(Object key,
Object value)
Sets the property for the specified key. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.broadinstitute.genee.matrix.Dataset |
|---|
getColumnCount, getColumnMetadata, getRowCount, getRowMetadata, getValue, setValue |
| Constructor Detail |
|---|
public AbstractDataset()
| Method Detail |
|---|
public int addSeries(String name,
Class<?> c)
public final String getName()
Dataset
getName in interface Dataset
public Object getObjectValue(int rowIndex,
int columnIndex,
int seriesIndex)
Dataset
getObjectValue in interface DatasetrowIndex - the row indexcolumnIndex - the column indexseriesIndex - the series index
public Object getProperty(Object key)
Dataset
getProperty in interface Datasetkey - the key
public Collection<Object> getPropertyKeys()
Dataset
getPropertyKeys in interface Datasetpublic Class<?> getSeriesClass(int series)
Dataset
getSeriesClass in interface Datasetseries - the index of the series
public int getSeriesCount()
Dataset
getSeriesCount in interface Datasetpublic String getSeriesName(int series)
Dataset
getSeriesName in interface Datasetseries - the series
public float getValue(int rowIndex,
int columnIndex,
int seriesIndex)
Dataset
getValue in interface DatasetrowIndex - the row indexcolumnIndex - the column indexseriesIndex - the series index
public void removeSeries(int index)
public void setName(String name)
Dataset
setName in interface Datasetname - The dataset name
public void setObjectValue(int rowIndex,
int columnIndex,
Object value,
int seriesIndex)
rowIndex - the row index.columnIndex - the column index.seriesIndex - the series index.
IndexOutOfBoundsException - if rowIndex or columnIndex are out of
range.
public void setProperty(Object key,
Object value)
Dataset
setProperty in interface Datasetkey - the keyvalue - the value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||