public abstract class AbstractRectangularDataStructure extends java.lang.Object implements RectangularDataStructure
Constructor and Description |
---|
AbstractRectangularDataStructure()
Constructs an
AbstractRectangularDataStructure object. |
AbstractRectangularDataStructure(java.lang.String name)
Constructs an
AbstractRectangularDataStructure object using the
specified name. |
AbstractRectangularDataStructure(java.lang.String name,
java.util.Collection<Attr> attrs,
java.util.Collection<Column> columns,
RowNames rowNames)
Constructs an
AbstractRectangularDataStructure object using the
specified parameters. |
Modifier and Type | Method and Description |
---|---|
java.util.List<Attr> |
getAttrs()
Retrieves the attributes of the data structure.
|
Column |
getColumnAt(int index)
Retrieves the column at the specified index.
|
java.util.List<Column> |
getColumns()
Retrieves the data structure's
Column objects. |
Vector |
getDimAttribute()
Retrieves a
Vector containing the dimensions of the data structure. |
List |
getDimnamesAttribute()
Retrieves a
List containing the dimension names of the data structure. |
java.lang.String |
getName()
Retrieves a string containing name of the data structure.
|
java.lang.Integer |
getNumCols()
Retrieves an
Integer containing the number of columns in the data structure. |
java.lang.Integer |
getNumRows()
Retrieves an
Integer containing the number of columns in the data structure. |
RowNames |
getRowNames()
Retrieves the row names of the data structure.
|
void |
setAttrs(java.util.Collection<Attr> attrs)
Sets the attributes of the data structure.
|
void |
setColumns(java.util.Collection<Column> columns)
Sets the columns of the data structure.
|
void |
setName(java.lang.String name)
Sets the name of the data structure.
|
void |
setNumCols(java.lang.Integer val)
Sets the number of columns in the data structure.
|
void |
setNumRows(java.lang.Integer val)
Sets the number of rows in the data structure.
|
void |
setRowNames(RowNames rowNames)
Sets the row names in the data structure.
|
public AbstractRectangularDataStructure(java.lang.String name, java.util.Collection<Attr> attrs, java.util.Collection<Column> columns, RowNames rowNames)
AbstractRectangularDataStructure
object using the
specified parameters.public AbstractRectangularDataStructure(java.lang.String name)
AbstractRectangularDataStructure
object using the
specified name.name
- The name of the data structure.public AbstractRectangularDataStructure()
AbstractRectangularDataStructure
object.public java.util.List<Attr> getAttrs()
getAttrs
in interface RectangularDataStructure
Attr
public java.util.List<Column> getColumns()
Column
objects.getColumns
in interface RectangularDataStructure
Column
objects.Column
public Column getColumnAt(int index)
getColumnAt
in interface RectangularDataStructure
index
- The index for the column to retrieve.Column
object.public Vector getDimAttribute()
Vector
containing the dimensions of the data structure.getDimAttribute
in interface RectangularDataStructure
Vector
object containing the dimensions of the data structure.public List getDimnamesAttribute()
List
containing the dimension names of the data structure.getDimnamesAttribute
in interface RectangularDataStructure
List
object containing the dimension names of the data structure.public java.lang.String getName()
getName
in interface RectangularDataStructure
public java.lang.Integer getNumCols()
Integer
containing the number of columns in the data structure.getNumCols
in interface RectangularDataStructure
Column
public java.lang.Integer getNumRows()
Integer
containing the number of columns in the data structure.getNumRows
in interface RectangularDataStructure
public RowNames getRowNames()
getRowNames
in interface RectangularDataStructure
RowNames
object.RowNames
public void setAttrs(java.util.Collection<Attr> attrs)
setAttrs
in interface RectangularDataStructure
A
- collection of Attr
objects.Attr
public void setColumns(java.util.Collection<Column> columns)
setColumns
in interface RectangularDataStructure
A
- collection of Column
objects.Column
public void setName(java.lang.String name)
setName
in interface RectangularDataStructure
A
- string containing the data structure name.public void setNumCols(java.lang.Integer val)
setNumCols
in interface RectangularDataStructure
An
- integer containing number of columns.Column
public void setNumRows(java.lang.Integer val)
setNumRows
in interface RectangularDataStructure
An
- integer containing number of rows.public void setRowNames(RowNames rowNames)
setRowNames
in interface RectangularDataStructure
A
- RowNames
object.RowNames