Interface MatrixPath
- All Superinterfaces:
Iterable<MatrixPath.MatrixCellPair>
- All Known Implementing Classes:
MatrixPathImpl
Interface representing a path through a matrix.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Holds a pair of tasks and indices of their position and their predecessor in the matrix. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPair
(int queryIdx, int caseIdx, DataObject queryObj, DataObject caseObj, double value) Add a pair of indices and corresponding objects.void
Add a pair to the path.reverse()
Reverse the entries in this path.int
size()
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
addPair
Add a pair of indices and corresponding objects.- Parameters:
queryIdx
-caseIdx
-queryObj
-caseObj
-value
-
-
addPair
Add a pair to the path.- Parameters:
pair
-
-
reverse
MatrixPath reverse()Reverse the entries in this path. -
size
int size()
-