edu.iu.iv.common.datamodels.matrixmodel
Class DenseObjectMatrixModel

java.lang.Object
  |
  +--cern.colt.PersistentObject
        |
        +--cern.colt.matrix.impl.AbstractMatrix
              |
              +--cern.colt.matrix.impl.AbstractMatrix2D
                    |
                    +--cern.colt.matrix.ObjectMatrix2D
                          |
                          +--cern.colt.matrix.impl.DenseObjectMatrix2D
                                |
                                +--edu.iu.iv.common.datamodels.matrixmodel.DenseObjectMatrixModel
All Implemented Interfaces:
java.lang.Cloneable, ObjectMatrixModel, java.io.Serializable

public class DenseObjectMatrixModel
extends cern.colt.matrix.impl.DenseObjectMatrix2D
implements ObjectMatrixModel

Version:
0.1
Author:
Shashikant
See Also:
Serialized Form

Field Summary
 
Fields inherited from class cern.colt.PersistentObject
serialVersionUID
 
Constructor Summary
DenseObjectMatrixModel(int numRows, int numColumns)
           
DenseObjectMatrixModel(java.lang.Object[][] values)
           
 
Method Summary
 java.lang.String getColumnLabel(int col)
          Gets the label for the specified column.
 int getNumberOfColumns()
           
 int getNumberOfRows()
           
 java.lang.String getRowLabel(int row)
          Gets the label for the specified row.
 void setColumnLabel(int col, java.lang.String text)
          Sets the label at the specified column to the specified text.
 void setRowLabel(int row, java.lang.String text)
          Sets the label of the specified row to the specified text.
 
Methods inherited from class cern.colt.matrix.impl.DenseObjectMatrix2D
assign, assign, assign, assign, getQuick, like, like1D, setQuick
 
Methods inherited from class cern.colt.matrix.ObjectMatrix2D
aggregate, aggregate, assign, cardinality, copy, equals, equals, get, getNonZeros, like, set, toArray, toString, viewColumn, viewColumnFlip, viewDice, viewPart, viewRow, viewRowFlip, viewSelection, viewSelection, viewSorted, viewStrides
 
Methods inherited from class cern.colt.matrix.impl.AbstractMatrix2D
checkShape, checkShape, columns, rows, size, toStringShort
 
Methods inherited from class cern.colt.matrix.impl.AbstractMatrix
ensureCapacity, trimToSize
 
Methods inherited from class cern.colt.PersistentObject
clone
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.iu.iv.core.datamodels.matrixmodel.ObjectMatrixModel
get, set
 

Constructor Detail

DenseObjectMatrixModel

public DenseObjectMatrixModel(int numRows,
                              int numColumns)
Parameters:
numRows -
numColumns -

DenseObjectMatrixModel

public DenseObjectMatrixModel(java.lang.Object[][] values)
Parameters:
values -
Method Detail

setColumnLabel

public void setColumnLabel(int col,
                           java.lang.String text)
Description copied from interface: ObjectMatrixModel
Sets the label at the specified column to the specified text.

Specified by:
setColumnLabel in interface ObjectMatrixModel
Parameters:
col - The column number.
text - The text of the label.
See Also:
ObjectMatrixModel.setColumnLabel(int, java.lang.String)

getColumnLabel

public java.lang.String getColumnLabel(int col)
Description copied from interface: ObjectMatrixModel
Gets the label for the specified column.

Specified by:
getColumnLabel in interface ObjectMatrixModel
Parameters:
col - The column number.
Returns:
The text of the label.
See Also:
ObjectMatrixModel.getColumnLabel(int)

setRowLabel

public void setRowLabel(int row,
                        java.lang.String text)
Description copied from interface: ObjectMatrixModel
Sets the label of the specified row to the specified text.

Specified by:
setRowLabel in interface ObjectMatrixModel
Parameters:
row - The row number.
text - The text of the label.
See Also:
ObjectMatrixModel.setRowLabel(int, java.lang.String)

getRowLabel

public java.lang.String getRowLabel(int row)
Description copied from interface: ObjectMatrixModel
Gets the label for the specified row.

Specified by:
getRowLabel in interface ObjectMatrixModel
Parameters:
row - The row number.
Returns:
The text of the label.
See Also:
ObjectMatrixModel.getRowLabel(int)

getNumberOfRows

public int getNumberOfRows()
Specified by:
getNumberOfRows in interface ObjectMatrixModel
Returns:
The number of rows in the matrix.
See Also:
ObjectMatrixModel.getNumberOfRows()

getNumberOfColumns

public int getNumberOfColumns()
Specified by:
getNumberOfColumns in interface ObjectMatrixModel
Returns:
The number of columns in the matrix.
See Also:
ObjectMatrixModel.getNumberOfColumns()