Interface MatrixPath
-
- All Superinterfaces:
Iterable<MatrixPath.MatrixCellPair>
- All Known Implementing Classes:
MatrixPathImpl
public interface MatrixPath extends Iterable<MatrixPath.MatrixCellPair>
Interface representing a path through a matrix.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMatrixPath.MatrixCellPairHolds a pair of tasks and indices of their position and their predecessor in the matrix.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPair(int queryIdx, int caseIdx, DataObject queryObj, DataObject caseObj, double value)Add a pair of indices and corresponding objects.voidaddPair(MatrixPath.MatrixCellPair pair)Add a pair to the path.MatrixPathreverse()Reverse the entries in this path.intsize()-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
addPair
void addPair(int queryIdx, int caseIdx, DataObject queryObj, DataObject caseObj, double value)Add a pair of indices and corresponding objects.- Parameters:
queryIdx-caseIdx-queryObj-caseObj-value-
-
addPair
void addPair(MatrixPath.MatrixCellPair pair)
Add a pair to the path.- Parameters:
pair-
-
reverse
MatrixPath reverse()
Reverse the entries in this path.
-
size
int size()
-
-