Package overit.geocall.util
Interface Matrix
- All Known Implementing Classes:
DynamicMatrix,SimpleMatrix
public interface Matrix
Interface that defines a matrix object, with methods that allow to obtain and set a specific object element
of the matrix and those that returns the dimensions
-
Method Summary
-
Method Details
-
get
Returns an element of the Matrix- Parameters:
x- The horizontal position of the cell from which extract the objecty- The vertical position of the cell from which extract the object- Returns:
- The object in the position defined by
xandy
-
set
Sets an object in the Matrix- Parameters:
x- The horizontal position of the celly- The vertical position of the cello- The object to set
-
getWidth
int getWidth()Returns the width of the Matrix- Returns:
- The number of horizontal cells of the Matrix
-
getHeight
int getHeight()Returns the height of the Matrix- Returns:
- The number of vertical cells of the Matrix
-