Class MatrixPathImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.similarity.nest.sequence.utils.impl.MatrixPathImpl
-
- All Implemented Interfaces:
MatrixPath,Iterable<MatrixPath.MatrixCellPair>
public class MatrixPathImpl extends Object implements MatrixPath
Class representing a path through a matrix. Can be used for the alignment path found by a dp algorithm.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMatrixPathImpl.PathIteratorIterator for the path.-
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.similarity.nest.sequence.utils.MatrixPath
MatrixPath.MatrixCellPair
-
-
Constructor Summary
Constructors Constructor Description MatrixPathImpl(ScoringMatrix matrix)
-
Method Summary
All Methods Instance Methods Concrete 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.Iterator<MatrixPath.MatrixCellPair>iterator()MatrixPathreverse()Reverse the entries in this path.intsize()-
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 Detail
-
MatrixPathImpl
public MatrixPathImpl(ScoringMatrix matrix)
-
-
Method Detail
-
addPair
public void addPair(int queryIdx, int caseIdx, DataObject queryObj, DataObject caseObj, double value)Description copied from interface:MatrixPathAdd a pair of indices and corresponding objects.- Specified by:
addPairin interfaceMatrixPath
-
addPair
public void addPair(MatrixPath.MatrixCellPair pair)
Description copied from interface:MatrixPathAdd a pair to the path.- Specified by:
addPairin interfaceMatrixPath
-
reverse
public MatrixPath reverse()
Description copied from interface:MatrixPathReverse the entries in this path.- Specified by:
reversein interfaceMatrixPath
-
size
public int size()
- Specified by:
sizein interfaceMatrixPath
-
iterator
public Iterator<MatrixPath.MatrixCellPair> iterator()
- Specified by:
iteratorin interfaceIterable<MatrixPath.MatrixCellPair>
-
-