Interface Frame<P extends FramePosition>
- All Known Implementing Classes:
DefaultFrame
Frame: a pair of the AlgART matrix
and its position
;
in other words, an n-dimensional matrix, placed by some way in n-dimensional space.
The matrix position is represented by FramePosition
interface and specifies, what area of
n-dimensional space corresponds to this matrix. In the simplest case, the position
is just coordinates of the starting element (0,0,...) of the matrix in the space.
See comments to FramePosition
interface for more details.
A set of frames is the basic data structure that is possible to be stitched by this package, i.e. transformed to a united matrix, corresponding to any rectangular area in n-dimensional space, probably containing all matrices, placed in the space at their positions.
Implementations of this interface are usually immutable and always thread-safe. All implementations of this interface from this package are immutable.
- Author:
- Daniel Alievsky
-
Method Summary
Modifier and TypeMethodDescriptionint
dimCount()
The number of space dimensions.boolean
void
CallsMatrix.freeResources(null)
for the matrix, contained in this frame.int
hashCode()
Returns the hash code of this object.matrix()
The matrix, contained in this frame.position()
The position in n-dimensional space, where the givenmatrix
is placed.
-
Method Details
-
dimCount
int dimCount()The number of space dimensions.- Returns:
- the number of space dimensions
-
matrix
The matrix, contained in this frame. There is a guarantee that thisInstance.matrix()
.dimCount()
==thisInstance.dimCount()
.- Returns:
- matrix contained in this frame.
-
position
P position()The position in n-dimensional space, where the givenmatrix
is placed. There is a guarantee that thisInstance.position()
.area()
.coordCount()
==thisInstance.dimCount()
.- Returns:
- position in n-dimensional space, where the given
matrix
is placed.
-
freeResources
void freeResources()CallsMatrix.freeResources(null)
for the matrix, contained in this frame. -
hashCode
int hashCode()Returns the hash code of this object. The result depends both on thematrix
and theframe position
. -
equals
-