org.apache.oodt.pcs.input
Class PGEMatrix

java.lang.Object
  extended by org.apache.oodt.pcs.input.PGEMatrix

public class PGEMatrix
extends Object

A PGEMatrix is a set of rows and columns with values in each cell defined by a row number and column number.

Version:
$Revision$
Author:
mattmann

Constructor Summary
PGEMatrix()
           Constructs a new PGEMatrix with no rows or columns.
PGEMatrix(String name, int numrows, int numcols)
           Constructs a new PGEMatrix with the specified numrows and numcols.
 
Method Summary
 void addValue(Object value, int row, int col)
           
 String getName()
           
 int getNumCols()
           
 List<List<Object>> getRows()
           
 Object getValue(int row, int col)
           
 void setName(String name)
           
 void setNumCols(int numCols)
           
 void setRows(List<List<Object>> rows)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGEMatrix

public PGEMatrix()

Constructs a new PGEMatrix with no rows or columns.


PGEMatrix

public PGEMatrix(String name,
                 int numrows,
                 int numcols)

Constructs a new PGEMatrix with the specified numrows and numcols.

Parameters:
numrows - The number of rows in the matrix.
numcols - The number of columns for each row in the matrix.
Method Detail

addValue

public void addValue(Object value,
                     int row,
                     int col)

getValue

public Object getValue(int row,
                       int col)

getRows

public List<List<Object>> getRows()
Returns:
Returns the rows.

setRows

public void setRows(List<List<Object>> rows)
Parameters:
rows - The rows to set.

getName

public String getName()
Returns:
Returns the name.

setName

public void setName(String name)
Parameters:
name - The name to set.

getNumCols

public int getNumCols()
Returns:
Returns the numCols.

setNumCols

public void setNumCols(int numCols)
Parameters:
numCols - The numCols to set.


Copyright © 1999-2013 Apache OODT. All Rights Reserved.