gov.sandia.cognition.math.matrix
Interface MatrixEntry


@CodeReview(reviewer="Jonathan McClain",
            date="2006-05-16",
            changesNeeded=false,
            comments="Looks fine. Why doesn\'t Matrix have additional methods that allow you to access it using MatrixEntry? Seems like a logical addition.",
            response=@CodeReviewResponse(respondent="Justin Basilico",date="2006-05-16",moreChangesNeeded=false,comments="Can now access a Matrix using MatrixEntry"))
public interface MatrixEntry

Interface that specifies the functionality for a matrix entry

Since:
1.0
Author:
Kevin R. Dixon

Method Summary
 int getColumnIndex()
          Gets the column index to which the entry points
 int getRowIndex()
          Gets the current row index to which this entry points
 double getValue()
          Gets the value to which this entry points
 void setColumnIndex(int columnIndex)
          Sets the column index to which the entry points
 void setRowIndex(int rowIndex)
          Sets the current row index to which this entry points
 void setValue(double value)
          Sets the value to which this entry points
 

Method Detail

getRowIndex

int getRowIndex()
Gets the current row index to which this entry points

Returns:
current zero-based index

setRowIndex

void setRowIndex(int rowIndex)
Sets the current row index to which this entry points

Parameters:
rowIndex - zero-based row index

getValue

double getValue()
Gets the value to which this entry points

Returns:
value of the entry

setValue

void setValue(double value)
Sets the value to which this entry points

Parameters:
value - new value at the current indices

getColumnIndex

int getColumnIndex()
Gets the column index to which the entry points

Returns:
zero-based column index

setColumnIndex

void setColumnIndex(int columnIndex)
Sets the column index to which the entry points

Parameters:
columnIndex - new zero-based column index for the entry