Class MatrixPathImpl
java.lang.Object
de.uni_trier.wi2.procake.similarity.nest.sequence.utils.impl.MatrixPathImpl
- All Implemented Interfaces:
MatrixPath
,Iterable<MatrixPath.MatrixCellPair>
Class representing a path through a matrix. Can be used for the alignment path found by a dp
algorithm.
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.similarity.nest.sequence.utils.MatrixPath
MatrixPath.MatrixCellPair
-
Constructor Summary
-
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.iterator()
reverse()
Reverse the entries in this path.int
size()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MatrixPathImpl
-
-
Method Details
-
addPair
public void addPair(int queryIdx, int caseIdx, DataObject queryObj, DataObject caseObj, double value) Description copied from interface:MatrixPath
Add a pair of indices and corresponding objects.- Specified by:
addPair
in interfaceMatrixPath
-
addPair
Description copied from interface:MatrixPath
Add a pair to the path.- Specified by:
addPair
in interfaceMatrixPath
-
reverse
Description copied from interface:MatrixPath
Reverse the entries in this path.- Specified by:
reverse
in interfaceMatrixPath
-
size
public int size()- Specified by:
size
in interfaceMatrixPath
-
iterator
- Specified by:
iterator
in interfaceIterable<MatrixPath.MatrixCellPair>
-